-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from balnarendrasapa/changes
add docker-compose file and readme instructions
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |