Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 951 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 951 Bytes

ML Chatbot

Text_genration bot using GTP-2 model (microsoft/DialoGPT-medium) You can deplot the bot using Fastapi by running command :

pip install requirements.txt
cd src/
uvicorn chatbot:app --reload

Also you can check the output in termial using Curl command line utitlity

curl -X GET "http://127.0.0.1:8000/chat?text=Hello%2C%20how%20are%20you%3F" \
 -H "accept: application/json"
 
 >>> { "Answer":"I'm good, how are you?"}

Example : Terminal/output

Alternative way is you Fastapi GUI service which can be access by:

http://127.0.0.1:8000/docs