isLinXu commited on
Commit
cdcfe11
·
1 Parent(s): e62e2c3

Fix Space runtime: set share=True; pin numpy<2 and gradio_client

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +2 -1
app.py CHANGED
@@ -417,7 +417,7 @@ class YOLO_Master_WebUI:
417
  outputs=[out_img, out_df, info_md]
418
  )
419
 
420
- app.launch(share=False, inbrowser=True)
421
 
422
 
423
  if __name__ == "__main__":
 
417
  outputs=[out_img, out_df, info_md]
418
  )
419
 
420
+ app.launch(share=True)
421
 
422
 
423
  if __name__ == "__main__":
requirements.txt CHANGED
@@ -2,8 +2,9 @@ ultralytics
2
  gradio==4.44.0
3
  opencv-python
4
  pillow
5
- numpy
6
  matplotlib
7
  torch==2.1.2
8
  torchvision==0.16.2
9
  huggingface_hub==0.32.0
 
 
2
  gradio==4.44.0
3
  opencv-python
4
  pillow
5
+ numpy<2
6
  matplotlib
7
  torch==2.1.2
8
  torchvision==0.16.2
9
  huggingface_hub==0.32.0
10
+ gradio_client>=0.16.4