irebmann commited on
Commit
98b524c
·
verified ·
1 Parent(s): c886c6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -54,6 +54,7 @@ def swin2sr_upscale(input_image: Image.Image, mode: str):
54
  f"Original resolution: {w_lr}×{h_lr} pixels\n"
55
  f"Super-resolved: {w_sr}×{h_sr} pixels "
56
  f"(scale factors: {w_sr / w_lr:.1f}×, {h_sr / h_lr:.1f}×)"
 
57
 
58
  ABOUT_TEXT = """
59
  **About this tool**
@@ -73,7 +74,7 @@ def swin2sr_upscale(input_image: Image.Image, mode: str):
73
  Please reach out if you need any help or have questions.
74
  """
75
 
76
- return sr_image, msg
77
 
78
  # ---- Gradio UI ----
79
  with gr.Blocks() as demo:
 
54
  f"Original resolution: {w_lr}×{h_lr} pixels\n"
55
  f"Super-resolved: {w_sr}×{h_sr} pixels "
56
  f"(scale factors: {w_sr / w_lr:.1f}×, {h_sr / h_lr:.1f}×)"
57
+ )
58
 
59
  ABOUT_TEXT = """
60
  **About this tool**
 
74
  Please reach out if you need any help or have questions.
75
  """
76
 
77
+ return sr_image, msg, ABOUT_TEXT
78
 
79
  # ---- Gradio UI ----
80
  with gr.Blocks() as demo: