Commit
·
070ba59
1
Parent(s):
030f023
Updated port
Browse files- Dockerfile +1 -1
- README.md +1 -1
- app.py +1 -1
Dockerfile
CHANGED
@@ -12,7 +12,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
12 |
pip install --no-cache-dir -r requirements.txt
|
13 |
|
14 |
# Expose the port on which your application runs inside the container
|
15 |
-
EXPOSE
|
16 |
|
17 |
# Use ENTRYPOINT to specify the command to run when the container starts
|
18 |
ENTRYPOINT ["python", "app.py"]
|
|
|
12 |
pip install --no-cache-dir -r requirements.txt
|
13 |
|
14 |
# Expose the port on which your application runs inside the container
|
15 |
+
EXPOSE 7860
|
16 |
|
17 |
# Use ENTRYPOINT to specify the command to run when the container starts
|
18 |
ENTRYPOINT ["python", "app.py"]
|
README.md
CHANGED
@@ -84,7 +84,7 @@ docker build --tag <docker_id>/llm-rag-op-chatbot .
|
|
84 |
**Step 2:** Run container (replace `<docker_id>` with your Docker ID)
|
85 |
|
86 |
```python
|
87 |
-
docker run -it -d --name llm-rag-op-chatbot -p
|
88 |
```
|
89 |
|
90 |
**Note 1:** List all containers
|
|
|
84 |
**Step 2:** Run container (replace `<docker_id>` with your Docker ID)
|
85 |
|
86 |
```python
|
87 |
+
docker run -it -d --name llm-rag-op-chatbot -p 7860:7860 -e HUGGINGFACEHUB_API_TOKEN=<api_token> <docker_id>/llm-rag-op-chatbot:latest
|
88 |
```
|
89 |
|
90 |
**Note 1:** List all containers
|
app.py
CHANGED
@@ -20,4 +20,4 @@ if __name__ == "__main__":
|
|
20 |
evaluate_rag("qa_chain", qa_chain)
|
21 |
else:
|
22 |
set_global_qa_chain(qa_chain)
|
23 |
-
create_chatinterface(generate_response).launch(server_name="0.0.0.0", server_port=
|
|
|
20 |
evaluate_rag("qa_chain", qa_chain)
|
21 |
else:
|
22 |
set_global_qa_chain(qa_chain)
|
23 |
+
create_chatinterface(generate_response).launch(server_name="0.0.0.0", server_port=7860)
|