Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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)
|