View Code? Open in Web Editor
NEW
Streamlit chatbot app that can answer questions based on a pdf. see the readme for more information
License: MIT License
Python 91.27%
Dockerfile 8.73%
doc-chatbot's Introduction
- Provide a pdf to this chatbot and ask a question. It answers the question based on the pdf.
- A javascript restful api is also implemented. go here
Running the app - Method 1
- Intialize a virtual environment. run
python -m venv .venv
- activate the virtual environment
- Windows - run
.venv/Scripts/activate
- Linux - run
source .venv/bin/activate
- Install dependencies from requirements.txt. run
pip install -r requirements.txt
(takes about ~6 minutes)
- Run the streamlit app. run
streamlit run app.py
- Open
localhost:8501
in browser
Running the app - Method 2
- Install docker from official website and make sure the docker is running
- run
cd other
- run
docker-compose up
(takes about ~6 minutes)
- Open
localhost:8501
in browser
doc-chatbot's People
Contributors
Watchers