ljsabc commited on
Commit
8e69757
1 Parent(s): 9fdbb14

minimal workable demo for prediction

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -65,9 +65,10 @@ def fn(image):
65
  return Image.fromarray(drawed[..., ::-1])
66
 
67
  iface = gr.Interface(
68
- inputs=gr.Image(type="numpy"),
69
- outputs="Image",
70
  fn=fn
 
 
71
  )
72
 
 
73
 
 
65
  return Image.fromarray(drawed[..., ::-1])
66
 
67
  iface = gr.Interface(
 
 
68
  fn=fn
69
+ inputs=gr.Image(type="numpy"),
70
+ outputs=gr.Image(type="pil")
71
  )
72
 
73
+ iface.launch()
74