Amazingldl commited on
Commit
1f1e79b
·
1 Parent(s): aede3d3

Update app.py

Browse files

去除import torch
去除127.0.0.1

Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import gradio as gr
2
- import torch
3
  import numpy as np
4
  from typing import List
5
  from PIL import Image, ImageDraw
@@ -48,4 +47,4 @@ with gr.Blocks(title="Zero-shot object detection", theme="freddyaboulton/dracula
48
  inference_btn.click(inference, inputs=[in_img, in_labels], outputs=[out_img])
49
 
50
  if __name__ == "__main__":
51
- demo.queue().launch(server_name="127.0.0.1")
 
1
  import gradio as gr
 
2
  import numpy as np
3
  from typing import List
4
  from PIL import Image, ImageDraw
 
47
  inference_btn.click(inference, inputs=[in_img, in_labels], outputs=[out_img])
48
 
49
  if __name__ == "__main__":
50
+ demo.queue().launch()