yangwu commited on
Commit
1c49612
1 Parent(s): 93cb1ad
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,10 +79,10 @@ if __name__ == '__main__':
79
 
80
  iface = gr.Interface(
81
  inference_api,
82
- inputs=gr.inputs.Image(label="Upload image to detect", type="filepath"),
83
  # outputs=['text', 'image'],
84
- outputs=[gr.outputs.Textbox(type="text", label="image forgery score"),
85
- gr.outputs.Image(type="numpy", label="predict mask")],
86
  title="Forged? Or Not?",
87
  )
88
  # iface.launch(server_name='0.0.0.0', share=True)
 
79
 
80
  iface = gr.Interface(
81
  inference_api,
82
+ inputs=gr.components.Image(label="Upload image to detect", type="filepath"),
83
  # outputs=['text', 'image'],
84
+ outputs=[gr.components.Textbox(type="text", label="image forgery score"),
85
+ gr.components.Image(type="numpy", label="predict mask")],
86
  title="Forged? Or Not?",
87
  )
88
  # iface.launch(server_name='0.0.0.0', share=True)