Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -343,7 +343,7 @@ class UpscalerApp:
|
|
| 343 |
result_text_blind = gr.Markdown("")
|
| 344 |
|
| 345 |
compare_button.click(
|
| 346 |
-
fn=
|
| 347 |
inputs=[input_image_blind, upscaler_size_slider, tile_slider, tile_overlap_slider, half_checkbox],
|
| 348 |
outputs=[output_image_a, output_image_b, result_text_blind, model_a_state, model_b_state, image_category_state, choose_a_button, choose_b_button]
|
| 349 |
)
|
|
@@ -379,6 +379,9 @@ class UpscalerApp:
|
|
| 379 |
def launch(self, **kwargs):
|
| 380 |
self.ui.launch(**kwargs)
|
| 381 |
|
|
|
|
|
|
|
|
|
|
| 382 |
|
| 383 |
@spaces.GPU(duration=60)
|
| 384 |
def gpu_tab2(*args, **kwargs):
|
|
|
|
| 343 |
result_text_blind = gr.Markdown("")
|
| 344 |
|
| 345 |
compare_button.click(
|
| 346 |
+
fn=gpu_tab1,
|
| 347 |
inputs=[input_image_blind, upscaler_size_slider, tile_slider, tile_overlap_slider, half_checkbox],
|
| 348 |
outputs=[output_image_a, output_image_b, result_text_blind, model_a_state, model_b_state, image_category_state, choose_a_button, choose_b_button]
|
| 349 |
)
|
|
|
|
| 379 |
def launch(self, **kwargs):
|
| 380 |
self.ui.launch(**kwargs)
|
| 381 |
|
| 382 |
+
@spaces.GPU(duration=70)
|
| 383 |
+
def gpu_tab1(*args, **kwargs):
|
| 384 |
+
return app.blind_upscale(*args, **kwargs)
|
| 385 |
|
| 386 |
@spaces.GPU(duration=60)
|
| 387 |
def gpu_tab2(*args, **kwargs):
|