Ahmed235 commited on
Commit
5f080d6
·
verified ·
1 Parent(s): 727c7a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -42,12 +42,10 @@ def predict_image(image):
42
 
43
  # Create the interface
44
  input_interface = gr.Image(type = "pil")
45
- output_interface = "json"
46
-
47
  iface = gr.Interface(
48
  fn=predict_image,
49
  inputs=input_interface,
50
- outputs=gr.Textbox("output"))
51
 
52
  # Launch the interface
53
  iface.launch(share=True)
 
42
 
43
  # Create the interface
44
  input_interface = gr.Image(type = "pil")
 
 
45
  iface = gr.Interface(
46
  fn=predict_image,
47
  inputs=input_interface,
48
+ outputs="json")
49
 
50
  # Launch the interface
51
  iface.launch(share=True)