manav0506 commited on
Commit
e6da863
Β·
1 Parent(s): 5ddd413

Fix: run app.py on port 7860 for HF Spaces

Browse files
Files changed (2) hide show
  1. Dockerfile +11 -10
  2. README.md +11 -6
Dockerfile CHANGED
@@ -1,20 +1,21 @@
1
- FROM python:3.13.5-slim
 
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
- COPY src/ ./src/
13
 
14
- RUN pip3 install -r requirements.txt
 
15
 
16
- EXPOSE 8501
17
-
18
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
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: 8501
8
  tags:
9
  - streamlit
 
 
 
10
  pinned: false
11
- short_description: Streamlit template space
12
  license: apache-2.0
13
  ---
14
 
15
- # Welcome to Streamlit!
16
 
17
- Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
18
 
19
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
20
- forums](https://discuss.streamlit.io).
 
 
 
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)