Skip to content

Commit

Permalink
Merge pull request #8 from balnarendrasapa/changes
Browse files Browse the repository at this point in the history
add docker-compose file and readme instructions
  • Loading branch information
balnarendrasapa committed Nov 8, 2023
2 parents efe5a9e + bd3d990 commit 76b704b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
# doc_chatbot
# ChatBot with documents

- Provide a pdf to this chatbot and ask a question. It answers the question based on the pdf.

## 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
6 changes: 6 additions & 0 deletions other/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: "3.8"
services:
chat-app:
image: ghcr.io/balnarendrasapa/doc-chatbot:latest
ports:
- "8501:8501"

0 comments on commit 76b704b

Please sign in to comment.