Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from infer import infer_image, infer_video
|
4 |
|
5 |
input_image = gr.Image(type='pil', label='Input Image')
|
6 |
-
input_model_image = gr.Radio([('x2', 2), ('x4', 4)
|
7 |
submit_image_button = gr.Button('Submit')
|
8 |
output_image = gr.Image(type="filepath", label="Output Image")
|
9 |
|
@@ -28,6 +28,6 @@ tab_vid = gr.Interface(
|
|
28 |
description="Gradio UI for Real-ESRGAN Pytorch version. To use it, simply upload your video and choose the model. Read more at the links below. Please click submit only once <br>Credits: [Nick088](https://linktr.ee/Nick088), Xinntao, Tencent, Geeve George, ai-forever, daroche <br><p style='text-align: center'><a href='https://arxiv.org/abs/2107.10833'>Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data</a> | <a href='https://github.com/ai-forever/Real-ESRGAN'>Github Repo</a></p>"
|
29 |
)
|
30 |
|
31 |
-
demo = gr.TabbedInterface([tab_img
|
32 |
|
33 |
demo.launch(debug=True, show_error=True, share=True)
|
|
|
3 |
from infer import infer_image, infer_video
|
4 |
|
5 |
input_image = gr.Image(type='pil', label='Input Image')
|
6 |
+
input_model_image = gr.Radio([('x2', 2), ('x4', 4)], type="value", value=4, label="Model Upscale/Enhance Type")
|
7 |
submit_image_button = gr.Button('Submit')
|
8 |
output_image = gr.Image(type="filepath", label="Output Image")
|
9 |
|
|
|
28 |
description="Gradio UI for Real-ESRGAN Pytorch version. To use it, simply upload your video and choose the model. Read more at the links below. Please click submit only once <br>Credits: [Nick088](https://linktr.ee/Nick088), Xinntao, Tencent, Geeve George, ai-forever, daroche <br><p style='text-align: center'><a href='https://arxiv.org/abs/2107.10833'>Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data</a> | <a href='https://github.com/ai-forever/Real-ESRGAN'>Github Repo</a></p>"
|
29 |
)
|
30 |
|
31 |
+
demo = gr.TabbedInterface([tab_img], ["Image"])
|
32 |
|
33 |
demo.launch(debug=True, show_error=True, share=True)
|