Web and service for conversation with RuDialoGPT
Article on Habr: https://habr.com/ru/company/icl_services/blog/548244/
Create environment:
- conda create -n rudialogpt python==3.7.9
- conda activate rudialogpt
- conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.2 -c pytorch
- pip install transformers==4.4.2
- pip install uvicorn==0.13.4
- pip install Flask==1.1.2
- pip install Flask-Bootstrap==3.3.7.1
- pip install fastapi==0.63.0
Run service:
- cd DialoGPT/src/service/
- conda activate rudialogpt
- python service.py
Run web:
- cd DialoGPT/src/web/
- conda activate rudialogpt
- python app.py
By default service start on localhost:8010, web start on localhost:8020