Spaces:
Sleeping
Sleeping
Deploy WitnessBox
Browse files- README.md +1 -1
- app.py +3 -1
- requirements.txt +4 -5
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: ⚖️
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
|
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.50.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
app.py
CHANGED
|
@@ -234,4 +234,6 @@ def build() -> gr.Blocks:
|
|
| 234 |
demo = build()
|
| 235 |
|
| 236 |
if __name__ == "__main__":
|
| 237 |
-
|
|
|
|
|
|
|
|
|
| 234 |
demo = build()
|
| 235 |
|
| 236 |
if __name__ == "__main__":
|
| 237 |
+
# server_name=0.0.0.0 so the HF Space's startup self-check can reach the app
|
| 238 |
+
# (a bare localhost bind can trip "localhost is not accessible" on Spaces).
|
| 239 |
+
demo.launch(server_name="0.0.0.0", server_port=int(os.environ.get("GRADIO_SERVER_PORT", 7860)))
|
requirements.txt
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
# The Gradio Space stays light: heavy models (torch/transformers/voxcpm) run on
|
| 2 |
# Modal, not here. The Space only needs the UI, audio analysis, and the Modal
|
| 3 |
# client used to call the deployed app.
|
| 4 |
-
gradio
|
| 5 |
-
#
|
| 6 |
-
#
|
| 7 |
-
|
| 8 |
-
huggingface_hub==0.36.2
|
| 9 |
numpy>=1.26
|
| 10 |
librosa>=0.10 # delivery-stance analysis (CPU)
|
| 11 |
soundfile>=0.12 # audio io for librosa
|
|
|
|
| 1 |
# The Gradio Space stays light: heavy models (torch/transformers/voxcpm) run on
|
| 2 |
# Modal, not here. The Space only needs the UI, audio analysis, and the Modal
|
| 3 |
# client used to call the deployed app.
|
| 4 |
+
# gradio 5.x: matches the modern Space base image (Python 3.13, current pydantic
|
| 5 |
+
# + huggingface_hub). gradio 4.x crashed there — its oauth imported the removed
|
| 6 |
+
# HfFolder, and its bundled gradio_client choked on boolean JSON-schema nodes.
|
| 7 |
+
gradio==5.50.0
|
|
|
|
| 8 |
numpy>=1.26
|
| 9 |
librosa>=0.10 # delivery-stance analysis (CPU)
|
| 10 |
soundfile>=0.12 # audio io for librosa
|