Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,12 +26,12 @@ article = "<p style='text-align: center'><a href='https://ieeexplore.ieee.org/do
|
|
26 |
examples = [['set5/baby.png'], ['set5/bird.png'],['set5/butterfly.png'],['set5/head.png'],['set5/woman.png']]
|
27 |
gr.Interface(
|
28 |
inference,
|
29 |
-
[gr.
|
30 |
-
gr.
|
31 |
title=title,
|
32 |
description=description,
|
33 |
article=article,
|
34 |
allow_flagging=False,
|
35 |
allow_screenshot=False,
|
36 |
examples=examples
|
37 |
-
).launch(debug=True)
|
|
|
26 |
examples = [['set5/baby.png'], ['set5/bird.png'],['set5/butterfly.png'],['set5/head.png'],['set5/woman.png']]
|
27 |
gr.Interface(
|
28 |
inference,
|
29 |
+
[gr.components.Image(type="pil", label="Input")],
|
30 |
+
gr.components.Image(type="filepath", label="Output"),
|
31 |
title=title,
|
32 |
description=description,
|
33 |
article=article,
|
34 |
allow_flagging=False,
|
35 |
allow_screenshot=False,
|
36 |
examples=examples
|
37 |
+
).launch(debug=True)
|