This a sample chatbot project using FastAPI back-end and gradio front-end.
- Copy your json file(s) dataset to
data
folder. - Copy your model to
models
folder or just set huggingface model name (likeSajjadAyoubi/bert-base-fa-qa
) inconfig.yml
. You can use any question-answering model from huggingface. - Customize
config.yml
file. - Open a new terminal and run:
bash run_server.sh
- Open another terminal and run:
bash run_ui.sh
- Open ui_ip:ui_port in your browser and start asking questions.