yuragoithf commited on
Commit
36238a7
1 Parent(s): c20227f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def rb(img):
31
  return response.json()
32
 
33
 
34
- inputs = gr.inputs.Image(type="pil", label="Upload an image")
35
  demo = gr.Interface(fn=rb, inputs=inputs, outputs="json")
36
  demo.launch()
37
 
 
31
  return response.json()
32
 
33
 
34
+ inputs = gr.components.Image(type="pil", label="Upload an image")
35
  demo = gr.Interface(fn=rb, inputs=inputs, outputs="json")
36
  demo.launch()
37