Spaces:
Build error
Build error
yangwu
commited on
Commit
•
1c49612
1
Parent(s):
93cb1ad
update
Browse files
app.py
CHANGED
@@ -79,10 +79,10 @@ if __name__ == '__main__':
|
|
79 |
|
80 |
iface = gr.Interface(
|
81 |
inference_api,
|
82 |
-
inputs=gr.
|
83 |
# outputs=['text', 'image'],
|
84 |
-
outputs=[gr.
|
85 |
-
gr.
|
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)
|