use docker SDK instead of gradio
Browse files- Dockerfile +10 -0
- README.md +1 -1
Dockerfile
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11-slim
|
2 |
+
|
3 |
+
WORKDIR /usr/src/app
|
4 |
+
|
5 |
+
COPY . .
|
6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
+
EXPOSE 7860
|
8 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
9 |
+
|
10 |
+
CMD ["python", "src/pdfchat/app.py"]
|
README.md
CHANGED
@@ -3,7 +3,7 @@ title: PDF Chat
|
|
3 |
emoji: π
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
6 |
-
sdk:
|
7 |
app_file: src/pdfchat/app.py
|
8 |
pinned: true
|
9 |
---
|
|
|
3 |
emoji: π
|
4 |
colorFrom: blue
|
5 |
colorTo: green
|
6 |
+
sdk: docker
|
7 |
app_file: src/pdfchat/app.py
|
8 |
pinned: true
|
9 |
---
|