Raghu commited on
Commit
6031652
·
1 Parent(s): 59ca2d9

Downgrade gradio to 3.50.2 and simplify launch args to avoid schema crash

Browse files
Files changed (2) hide show
  1. app.py +0 -1
  2. requirements.txt +2 -2
app.py CHANGED
@@ -713,6 +713,5 @@ if __name__ == "__main__":
713
  server_name="0.0.0.0",
714
  server_port=7860,
715
  show_error=True,
716
- show_api=False, # avoid json_schema parsing issues in Spaces
717
  )
718
 
 
713
  server_name="0.0.0.0",
714
  server_port=7860,
715
  show_error=True,
 
716
  )
717
 
requirements.txt CHANGED
@@ -2,8 +2,8 @@ torch>=2.0.0
2
  torchvision>=0.15.0
3
  transformers>=4.30.0
4
  easyocr>=1.7.0
5
- # Downgrade Gradio to avoid json_schema bool issue on Spaces
6
- gradio==4.19.2
7
  Pillow>=9.0.0
8
  numpy>=1.21.0
9
  scikit-learn>=1.0.0
 
2
  torchvision>=0.15.0
3
  transformers>=4.30.0
4
  easyocr>=1.7.0
5
+ # Further downgrade Gradio to avoid json_schema issues on Spaces
6
+ gradio==3.50.2
7
  Pillow>=9.0.0
8
  numpy>=1.21.0
9
  scikit-learn>=1.0.0