Spaces:
Sleeping
Sleeping
Deploy WitnessBox
Browse filesFiles changed (3)
- README.md+1-1
- app.py+3-1
- requirements.txt+4-5
3 unmodified lines456789103 unmodified linescolorFrom: yellowcolorTo: redsdk: gradiosdk_version: 4.44.1app_file: app.pypinned: falselicense: mit3 unmodified lines456789103 unmodified linescolorFrom: yellowcolorTo: redsdk: gradiosdk_version: 5.50.0app_file: app.pypinned: falselicense: mit
233 unmodified lines234235236237233 unmodified linesdemo = build()if __name__ == "__main__":demo.launch()233 unmodified lines234235236237238239233 unmodified linesdemo = build()if __name__ == "__main__":# server_name=0.0.0.0 so the HF Space's startup self-check can reach the app# (a bare localhost bind can trip "localhost is not accessible" on Spaces).demo.launch(server_name="0.0.0.0", server_port=int(os.environ.get("GRADIO_SERVER_PORT", 7860)))
1234567891011# The Gradio Space stays light: heavy models (torch/transformers/voxcpm) run on# Modal, not here. The Space only needs the UI, audio analysis, and the Modal# client used to call the deployed app.gradio==4.44.1# Pin hub to a version that still ships HfFolder: gradio 4.44's oauth module does# `from huggingface_hub import HfFolder`, which newer hub releases removed — the# Space base image otherwise pulls a too-new hub and crashes app startup.huggingface_hub==0.36.2numpy>=1.26librosa>=0.10 # delivery-stance analysis (CPU)soundfile>=0.12 # audio io for librosa12345678910# The Gradio Space stays light: heavy models (torch/transformers/voxcpm) run on# Modal, not here. The Space only needs the UI, audio analysis, and the Modal# client used to call the deployed app.# gradio 5.x: matches the modern Space base image (Python 3.13, current pydantic# + huggingface_hub). gradio 4.x crashed there — its oauth imported the removed# HfFolder, and its bundled gradio_client choked on boolean JSON-schema nodes.gradio==5.50.0numpy>=1.26librosa>=0.10 # delivery-stance analysis (CPU)soundfile>=0.12 # audio io for librosa
README.md+1-1
app.py+3-1
requirements.txt+4-5