Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,16 +75,15 @@ def inference(img, task, run_on):
|
|
75 |
gr.Interface(
|
76 |
inference,
|
77 |
[
|
78 |
-
gr.
|
79 |
-
gr.
|
80 |
-
gr.
|
81 |
|
82 |
],
|
83 |
-
gr.
|
84 |
title=title,
|
85 |
description=description,
|
86 |
article=article,
|
87 |
theme ="huggingface",
|
88 |
examples=examples,
|
89 |
-
allow_flagging=False,
|
90 |
).launch(debug=False,enable_queue=True)
|
|
|
75 |
gr.Interface(
|
76 |
inference,
|
77 |
[
|
78 |
+
gr.Image(type="pil", label="Input"),
|
79 |
+
gr.Radio(["Deraining"], default="Denoising", label='task'),
|
80 |
+
gr.Dropdown(choices=inference_on, type="value", default='Downsampled Image', label='Inference on')
|
81 |
|
82 |
],
|
83 |
+
gr.Image(type="pil", label="cleaned and restored"),
|
84 |
title=title,
|
85 |
description=description,
|
86 |
article=article,
|
87 |
theme ="huggingface",
|
88 |
examples=examples,
|
|
|
89 |
).launch(debug=False,enable_queue=True)
|