Spaces:
Runtime error
Runtime error
Peter Michael Gits Claude commited on
Commit ·
2a50bb0
1
Parent(s): d4effe0
Use official HuggingFace documentation approach to override model detection
Browse filesv2.0.3 - DOCUMENTED APPROACH: Based on official HF Spaces config reference
1. Added models: [] to explicitly override automatic model detection
2. Added app_file: app.py to specify our Docker entrypoint
3. Removed unofficial .hf_config.json (not in HF docs)
4. Cleaned up .space_config.yaml to use only documented parameters
5. Per HF docs: 'Models will be parsed automatically from code if not specified'
6. Empty models: [] should prevent auto-detection of Moshi models
Following official HuggingFace Spaces documentation instead of guessing!
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- .hf_config.json +0 -7
- .space_config.yaml +4 -4
- README.md +3 -0
- app.py +1 -1
.hf_config.json
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"sdk": "docker",
|
| 3 |
-
"app_port": 7860,
|
| 4 |
-
"hardware": "l4",
|
| 5 |
-
"disable_auto_inference": true,
|
| 6 |
-
"force_docker": true
|
| 7 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.space_config.yaml
CHANGED
|
@@ -6,7 +6,7 @@ sdk: docker
|
|
| 6 |
app_port: 7860
|
| 7 |
hardware: l4
|
| 8 |
sleep_time_timeout: 1800
|
| 9 |
-
suggested_storage:
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 6 |
app_port: 7860
|
| 7 |
hardware: l4
|
| 8 |
sleep_time_timeout: 1800
|
| 9 |
+
suggested_storage: small
|
| 10 |
+
app_file: app.py
|
| 11 |
+
models: []
|
| 12 |
+
datasets: []
|
README.md
CHANGED
|
@@ -9,6 +9,9 @@ hardware: l4
|
|
| 9 |
sleep_time_timeout: 1800
|
| 10 |
suggested_storage: small
|
| 11 |
pinned: false
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
# STT GPU Service Python v4
|
|
|
|
| 9 |
sleep_time_timeout: 1800
|
| 10 |
suggested_storage: small
|
| 11 |
pinned: false
|
| 12 |
+
app_file: app.py
|
| 13 |
+
models: []
|
| 14 |
+
datasets: []
|
| 15 |
---
|
| 16 |
|
| 17 |
# STT GPU Service Python v4
|
app.py
CHANGED
|
@@ -21,7 +21,7 @@ from fastapi.responses import JSONResponse, HTMLResponse
|
|
| 21 |
import uvicorn
|
| 22 |
|
| 23 |
# Version tracking
|
| 24 |
-
VERSION = "2.0.
|
| 25 |
COMMIT_SHA = "TBD"
|
| 26 |
|
| 27 |
# Configure logging
|
|
|
|
| 21 |
import uvicorn
|
| 22 |
|
| 23 |
# Version tracking
|
| 24 |
+
VERSION = "2.0.3"
|
| 25 |
COMMIT_SHA = "TBD"
|
| 26 |
|
| 27 |
# Configure logging
|