Spaces:
Runtime error
Runtime error
Fix: run app.py on port 7860 for HF Spaces
Browse files- Dockerfile +11 -10
- README.md +11 -6
Dockerfile
CHANGED
|
@@ -1,20 +1,21 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
RUN apt-get update && apt-get install -y \
|
| 6 |
build-essential \
|
| 7 |
curl \
|
| 8 |
git \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
-
COPY requirements.txt .
|
| 12 |
-
|
| 13 |
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
HEALTHCHECK CMD curl --fail http://localhost:
|
| 19 |
-
|
| 20 |
-
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
| 1 |
+
# Hugging Face Space: Streamlit on port 7860 (required by HF)
|
| 2 |
+
FROM python:3.10-slim
|
| 3 |
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
build-essential \
|
| 8 |
curl \
|
| 9 |
git \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
COPY requirements.txt .
|
| 13 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
+
COPY app.py .
|
| 16 |
+
COPY scripts/ ./scripts/
|
| 17 |
|
| 18 |
+
# HF Spaces expose port 7860
|
| 19 |
+
EXPOSE 7860
|
| 20 |
+
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || true
|
| 21 |
+
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
README.md
CHANGED
|
@@ -4,17 +4,22 @@ emoji: π
|
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: red
|
| 6 |
sdk: docker
|
| 7 |
-
app_port:
|
| 8 |
tags:
|
| 9 |
- streamlit
|
|
|
|
|
|
|
|
|
|
| 10 |
pinned: false
|
| 11 |
-
short_description:
|
| 12 |
license: apache-2.0
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: red
|
| 6 |
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
tags:
|
| 9 |
- streamlit
|
| 10 |
+
- stable-diffusion
|
| 11 |
+
- skybox
|
| 12 |
+
- 3d
|
| 13 |
pinned: false
|
| 14 |
+
short_description: Text β Skybox & Text β 3D Mesh (Stable Diffusion + TripoSR)
|
| 15 |
license: apache-2.0
|
| 16 |
---
|
| 17 |
|
| 18 |
+
# Evoneural MVP β Mesh & Skybox
|
| 19 |
|
| 20 |
+
Text β **360Β° skybox** (Stable Diffusion) and Text β **3D mesh** (Stable Diffusion + TripoSR).
|
| 21 |
|
| 22 |
+
- **Skybox**: Enter a prompt β 2:1 equirectangular image.
|
| 23 |
+
- **Mesh**: Enter a prompt or upload an image β 3D mesh (.glb / .obj).
|
| 24 |
+
|
| 25 |
+
Model: [evoneural/evoneuralIn3D](https://huggingface.co/evoneural/evoneuralIn3D)
|