Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -341,14 +341,15 @@ interface = gr.Interface(
|
|
| 341 |
inputs=[
|
| 342 |
gr.Image(type="pil"),
|
| 343 |
gr.Checkbox(label="Sharpen Image"),
|
| 344 |
-
gr.Radio(choices=["MobileSR", "
|
| 345 |
-
gr.Radio(choices=["True", "False"], label="Save Output")
|
| 346 |
],
|
| 347 |
outputs=gr.Image(type="pil", label="Translated Image"),
|
| 348 |
title="Correction App",
|
| 349 |
-
description="Upload an image and get the translated version. Some images may be blurry, you can tick the checkbox to sharpen them. Choose between three different models for translation.
|
| 350 |
-
allow_flagging='never'
|
| 351 |
)
|
| 352 |
|
|
|
|
| 353 |
# Launch the Gradio app
|
| 354 |
interface.launch()
|
|
|
|
| 341 |
inputs=[
|
| 342 |
gr.Image(type="pil"),
|
| 343 |
gr.Checkbox(label="Sharpen Image"),
|
| 344 |
+
gr.Radio(choices=["MobileSR", "MiniSRGAN", "MiniSRResNET"], label="Select Model", value="MobileSR"),
|
| 345 |
+
gr.Radio(choices=["True", "False"], label="Save Output", value="False")
|
| 346 |
],
|
| 347 |
outputs=gr.Image(type="pil", label="Translated Image"),
|
| 348 |
title="Correction App",
|
| 349 |
+
description="Upload an image and get the translated version. Some images may be blurry, you can tick the checkbox to sharpen them. Choose between three different models for translation.",
|
| 350 |
+
allow_flagging='never'
|
| 351 |
)
|
| 352 |
|
| 353 |
+
|
| 354 |
# Launch the Gradio app
|
| 355 |
interface.launch()
|