chaoxu commited on
Commit
b722467
β€’
1 Parent(s): 41a9dce

Fix gradio port

Browse files
Files changed (2) hide show
  1. gradio_app.py +1 -1
  2. requirements.txt +2 -1
gradio_app.py CHANGED
@@ -197,7 +197,7 @@ def run_demo():
197
  inputs=[processed_image_highres, scale_slider, steps_slider, seed, output_processing],
198
  outputs=[view_1, view_2, view_3, view_4, view_5, view_6])
199
 
200
- demo.queue().launch(share=True, max_threads=80)
201
 
202
 
203
  if __name__ == '__main__':
 
197
  inputs=[processed_image_highres, scale_slider, steps_slider, seed, output_processing],
198
  outputs=[view_1, view_2, view_3, view_4, view_5, view_6])
199
 
200
+ demo.queue().launch(share=False, max_threads=80, server_name="0.0.0.0", server_port=7860)
201
 
202
 
203
  if __name__ == '__main__':
requirements.txt CHANGED
@@ -10,4 +10,5 @@ altair<5
10
  huggingface_hub
11
  git+https://github.com/facebookresearch/segment-anything.git
12
  gradio>=3.50
13
- fire
 
 
10
  huggingface_hub
11
  git+https://github.com/facebookresearch/segment-anything.git
12
  gradio>=3.50
13
+ fire
14
+ accelerate