Farseen0 commited on
Commit
beb5c4a
·
verified ·
1 Parent(s): be733d6

Deploy WitnessBox

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. app.py +3 -1
  3. requirements.txt +4 -5
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: ⚖️
4
  colorFrom: yellow
5
  colorTo: red
6
  sdk: gradio
7
- sdk_version: 4.44.1
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
- demo.launch()
 
 
 
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==4.44.1
5
- # Pin hub to a version that still ships HfFolder: gradio 4.44's oauth module does
6
- # `from huggingface_hub import HfFolder`, which newer hub releases removed — the
7
- # Space base image otherwise pulls a too-new hub and crashes app startup.
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