Spaces:
Paused
Paused
Updated Docker
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -44,12 +44,8 @@ RUN pip install --no-cache-dir \
|
|
| 44 |
"torch>=2.0.0" \
|
| 45 |
"torchvision>=0.15.0"
|
| 46 |
|
| 47 |
-
# 7. Prevent 'Invalid value' crash
|
| 48 |
-
# This stops libraries from fighting over CPU cores
|
| 49 |
-
ENV OMP_NUM_THREADS=1
|
| 50 |
-
|
| 51 |
# 8. Connects the Docker Room to the Hugging Face Screen
|
| 52 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 53 |
ENV GRADIO_SERVER_PORT="7860"
|
| 54 |
|
| 55 |
-
CMD ["
|
|
|
|
| 44 |
"torch>=2.0.0" \
|
| 45 |
"torchvision>=0.15.0"
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
# 8. Connects the Docker Room to the Hugging Face Screen
|
| 48 |
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 49 |
ENV GRADIO_SERVER_PORT="7860"
|
| 50 |
|
| 51 |
+
CMD ["/bin/bash", "-c", "export OMP_NUM_THREADS=1 && python app.py"]
|