Spaces:
Sleeping
Sleeping
Commit ·
6b4d607
1
Parent(s): a768fd4
Switch to app.py for deployment with correct SimpleCNN model
Browse files- Dockerfile +2 -2
- space.yml +1 -1
Dockerfile
CHANGED
|
@@ -23,6 +23,6 @@ ENV MPLCONFIGDIR=/tmp/matplotlib
|
|
| 23 |
RUN mkdir -p /tmp/matplotlib && \
|
| 24 |
chmod -R 777 /tmp/matplotlib
|
| 25 |
|
| 26 |
-
# Run
|
| 27 |
# Note: Using port 7860 as it's the standard port for Hugging Face Spaces
|
| 28 |
-
CMD ["streamlit", "run", "
|
|
|
|
| 23 |
RUN mkdir -p /tmp/matplotlib && \
|
| 24 |
chmod -R 777 /tmp/matplotlib
|
| 25 |
|
| 26 |
+
# Run app.py when the container launches
|
| 27 |
# Note: Using port 7860 as it's the standard port for Hugging Face Spaces
|
| 28 |
+
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]
|
space.yml
CHANGED
|
@@ -4,6 +4,6 @@ colorFrom: green
|
|
| 4 |
colorTo: blue
|
| 5 |
sdk: docker
|
| 6 |
app_port: 7860
|
| 7 |
-
app_file:
|
| 8 |
pinned: false
|
| 9 |
license: mit
|
|
|
|
| 4 |
colorTo: blue
|
| 5 |
sdk: docker
|
| 6 |
app_port: 7860
|
| 7 |
+
app_file: app.py
|
| 8 |
pinned: false
|
| 9 |
license: mit
|