Spaces:
Runtime error
Runtime error
brentyi commited on
Commit ·
cd95471
1
Parent(s): 932e635
Docker version
Browse files- Dockerfile +14 -0
- README.md +2 -3
- requirements.txt +6 -1
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
+
|
| 8 |
+
COPY . .
|
| 9 |
+
|
| 10 |
+
# Make port 7860 available to the world outside the container
|
| 11 |
+
EXPOSE 7860
|
| 12 |
+
|
| 13 |
+
# Command to run when the container starts
|
| 14 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
|
@@ -3,9 +3,8 @@ title: Viser Gradio Embed
|
|
| 3 |
emoji: 🚀
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: pink
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
|
|
|
| 3 |
emoji: 🚀
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: pink
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
|
|
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
requirements.txt
CHANGED
|
@@ -1 +1,6 @@
|
|
| 1 |
-
viser
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
viser==0.2.23
|
| 2 |
+
gradio==5.23.1
|
| 3 |
+
fastapi==0.115.11
|
| 4 |
+
uvicorn==0.34.0
|
| 5 |
+
httpx==0.27.2
|
| 6 |
+
websockets==15.0.1
|