yangwu commited on
Commit
469e3e7
1 Parent(s): 17c6031

update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import requests
3
 
4
 
5
- def test()
6
  url = 'http://81.70.158.155:5005/predict'
7
  with open('./2680.jpg', 'rb') as f:
8
  r = requests.post(url, files = {'image' : f})
@@ -27,7 +27,6 @@ def predict(img):
27
  return pred_seg
28
 
29
 
30
-
31
  iface = gr.Interface(
32
  predict,
33
  inputs=gr.inputs.Image(label="Upload image to detect", type="filepath"),
 
2
  import requests
3
 
4
 
5
+ def test():
6
  url = 'http://81.70.158.155:5005/predict'
7
  with open('./2680.jpg', 'rb') as f:
8
  r = requests.post(url, files = {'image' : f})
 
27
  return pred_seg
28
 
29
 
 
30
  iface = gr.Interface(
31
  predict,
32
  inputs=gr.inputs.Image(label="Upload image to detect", type="filepath"),