Spaces:
Runtime error
Runtime error
Peter Michael Gits Claude commited on
Commit ·
a6a4464
1
Parent(s): 10a540d
Revert to working OMP_NUM_THREADS approach from SHA 9201e6d
Browse filesv1.4.6 - REVERT to working configuration:
- You confirmed SHA 9201e6d fixed OMP_NUM_THREADS issue cleanly
- That used: Python os.environ override + simple CMD ['python', 'app.py']
- I kept changing Dockerfile CMD after it worked, causing regression
- Reverting to proven working approach instead of complex shell commands
Back to basics that worked!
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Dockerfile +2 -2
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -59,5 +59,5 @@ EXPOSE 7860
|
|
| 59 |
HEALTHCHECK --interval=60s --timeout=45s --start-period=300s --retries=5 \
|
| 60 |
CMD curl -f http://localhost:7860/health || exit 1
|
| 61 |
|
| 62 |
-
# Run application as non-root user
|
| 63 |
-
CMD ["
|
|
|
|
| 59 |
HEALTHCHECK --interval=60s --timeout=45s --start-period=300s --retries=5 \
|
| 60 |
CMD curl -f http://localhost:7860/health || exit 1
|
| 61 |
|
| 62 |
+
# Run application as non-root user
|
| 63 |
+
CMD ["python", "app.py"]
|
app.py
CHANGED
|
@@ -21,7 +21,7 @@ from fastapi.responses import JSONResponse, HTMLResponse
|
|
| 21 |
import uvicorn
|
| 22 |
|
| 23 |
# Version tracking
|
| 24 |
-
VERSION = "1.4.
|
| 25 |
COMMIT_SHA = "TBD"
|
| 26 |
|
| 27 |
# Configure logging
|
|
|
|
| 21 |
import uvicorn
|
| 22 |
|
| 23 |
# Version tracking
|
| 24 |
+
VERSION = "1.4.6"
|
| 25 |
COMMIT_SHA = "TBD"
|
| 26 |
|
| 27 |
# Configure logging
|