DigiP-AI commited on
Commit
cceb22d
·
verified ·
1 Parent(s): ae6b5a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -13
app.py CHANGED
@@ -197,18 +197,6 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
197
  with gr.Row():
198
  image_button = gr.Button("Run", variant='primary')
199
  image_button.click(flip_image, inputs=image_input, outputs=image_output)
200
-
201
- with gr.Tab("Image Upscaler"):
202
- with gr.Row():
203
- with gr.Column():
204
- def upscale_image(input_image, radio_input):
205
- upscale_factor = radio_input
206
- output_image = cv2.resize(input_image, None, fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
207
- return output_image
208
-
209
- radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
210
-
211
- iface = gr.Interface(fn=upscale_image, inputs = [gr.Image(label="Input Image", interactive=True), radio_input], outputs = gr.Image(label="Upscaled Image", format="png"), title="Image Upscaler")
212
-
213
 
214
  app.launch(show_api=False, share=False)
 
197
  with gr.Row():
198
  image_button = gr.Button("Run", variant='primary')
199
  image_button.click(flip_image, inputs=image_input, outputs=image_output)
200
+
 
 
 
 
 
 
 
 
 
 
 
 
201
 
202
  app.launch(show_api=False, share=False)