zenafey commited on
Commit
2529e20
1 Parent(s): b37664d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -161,11 +161,11 @@ with gr.Blocks() as demo:
161
  with gr.Row():
162
  with gr.Column():
163
  image_input = gr.Image(type='filepath')
164
- scale_by = gr.Slider(label="Scale by", minimum=2, maximum=4, step=2)
165
- upscale_btn = gr.Button("Upscale!")
166
  with gr.Column():
167
  image_output = gr.Image()
168
 
169
- upscale_btn.click(image_upscale, inputs=[image_input, scale_by], outputs=image_output)
170
 
171
  demo.launch(show_api=False)
 
161
  with gr.Row():
162
  with gr.Column():
163
  image_input = gr.Image(type='filepath')
164
+ scale_by = gr.Radio(['2', '4'], label="Scale by")
165
+ upscale_btn = gr.Button("Upscale!", variant='primary')
166
  with gr.Column():
167
  image_output = gr.Image()
168
 
169
+ upscale_btn.click(image_upscale, inputs=[image_input, int(scale_by)], outputs=image_output)
170
 
171
  demo.launch(show_api=False)