Dekonstruktio commited on
Commit
e9056fc
·
verified ·
1 Parent(s): fbbc392

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -280,7 +280,7 @@ class UpscalerApp:
280
  def build_gradio_ui(self):
281
  """Constructs the Gradio interface."""
282
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
283
- gr.Markdown("# Image Upscaler GUI with A/B Testing")
284
 
285
  with gr.Accordion("Advanced Settings", open=True):
286
  with gr.Row():
@@ -304,8 +304,8 @@ class UpscalerApp:
304
  input_image_blind = gr.Image(type="pil", label="Source Image")
305
  compare_button = gr.Button("Compare Upscalers")
306
  with gr.Row():
307
- output_image_a = gr.Image(label="Result A", interactive=False, format="png")
308
- output_image_b = gr.Image(label="Result B", interactive=False, format="png")
309
  with gr.Row():
310
  choose_a_button = gr.Button("I prefer Result A", interactive=False)
311
  choose_b_button = gr.Button("I prefer Result B", interactive=False)
@@ -332,7 +332,7 @@ class UpscalerApp:
332
  with gr.Row():
333
  with gr.Column(scale=1):
334
  input_image_playground = gr.Image(type="pil", label="Source Image", format="jpg")
335
- upscaler_model_dropdown = gr.Dropdown(value="R-ESRGAN_4x+", choices=list(UPSCALER_DICT_GUI.keys()), label="Upscaler Model")
336
  run_button_playground = gr.Button("Upscale")
337
  with gr.Column(scale=2):
338
  output_image_playground = gr.Image(label="Upscaled Result", interactive=False, format="jpg")
 
280
  def build_gradio_ui(self):
281
  """Constructs the Gradio interface."""
282
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
283
+ gr.Markdown(" ")
284
 
285
  with gr.Accordion("Advanced Settings", open=True):
286
  with gr.Row():
 
304
  input_image_blind = gr.Image(type="pil", label="Source Image")
305
  compare_button = gr.Button("Compare Upscalers")
306
  with gr.Row():
307
+ output_image_a = gr.Image(label="Result A", interactive=False, format="jpg")
308
+ output_image_b = gr.Image(label="Result B", interactive=False, format="jpg")
309
  with gr.Row():
310
  choose_a_button = gr.Button("I prefer Result A", interactive=False)
311
  choose_b_button = gr.Button("I prefer Result B", interactive=False)
 
332
  with gr.Row():
333
  with gr.Column(scale=1):
334
  input_image_playground = gr.Image(type="pil", label="Source Image", format="jpg")
335
+ upscaler_model_dropdown = gr.Dropdown(value="4x_UltraSharp", choices=list(UPSCALER_DICT_GUI.keys()), label="Upscaler Model")
336
  run_button_playground = gr.Button("Upscale")
337
  with gr.Column(scale=2):
338
  output_image_playground = gr.Image(label="Upscaled Result", interactive=False, format="jpg")