Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,17 +37,17 @@ examples = [['demo/noisy.png', 'Denoising'], ['demo/blurry.jpg', 'Deblurring']]
|
|
37 |
|
38 |
# Updated Gradio Interface
|
39 |
iface = gr.Interface(
|
40 |
-
|
41 |
-
inputs=[
|
42 |
-
|
43 |
-
|
44 |
-
],
|
45 |
-
outputs=gr.Image(type="file", label="Output Image"), # Replaced gr.outputs.Image
|
46 |
title=title,
|
47 |
description=description,
|
48 |
article=article,
|
|
|
49 |
examples=examples
|
50 |
)
|
51 |
|
|
|
52 |
# Launch interface
|
53 |
iface.launch(debug=True)
|
|
|
37 |
|
38 |
# Updated Gradio Interface
|
39 |
iface = gr.Interface(
|
40 |
+
inference,
|
41 |
+
inputs=[gr.Image(type="pil", label="Input Image"),
|
42 |
+
gr.Radio(["Denoising", "Deblurring"], value="Denoising", label="Task")],
|
43 |
+
outputs=gr.Image(type="filepath", label="Output Image"),
|
|
|
|
|
44 |
title=title,
|
45 |
description=description,
|
46 |
article=article,
|
47 |
+
enable_queue=True,
|
48 |
examples=examples
|
49 |
)
|
50 |
|
51 |
+
|
52 |
# Launch interface
|
53 |
iface.launch(debug=True)
|