mineeuk Claude Opus 4.6 (1M context) commited on
Commit
450687e
·
1 Parent(s): 973b87b

fix: pin gradio version and remove share=False for HF Spaces

Browse files

Pin gradio==4.44.1 and gradio_client==1.3.0 to avoid TypeError in
json_schema_to_python_type with newer versions. Remove share=False
which causes localhost access error on HF Spaces.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +2 -0
app.py CHANGED
@@ -640,7 +640,7 @@ if __name__ == "__main__":
640
  demo.launch(
641
  server_name="0.0.0.0",
642
  server_port=7860,
 
643
  show_error=True,
644
- share=False,
645
  ssr_mode=False,
646
  )
 
640
  demo.launch(
641
  server_name="0.0.0.0",
642
  server_port=7860,
643
+ show_api=False,
644
  show_error=True,
 
645
  ssr_mode=False,
646
  )
requirements.txt CHANGED
@@ -16,4 +16,6 @@ omegaconf
16
  huggingface_hub>=0.25.1,<1.0.0
17
  soxr
18
  lameenc
 
 
19
  spaces
 
16
  huggingface_hub>=0.25.1,<1.0.0
17
  soxr
18
  lameenc
19
+ gradio==4.44.1
20
+ gradio_client==1.3.0
21
  spaces