Spaces:
Running
on
Zero
Running
on
Zero
Fabrice-TIERCELIN
commited on
Commit
•
f2ad942
1
Parent(s):
25fca33
result_slider = ImageSlider(label='Comparator', show_label=False, elem_id="slider1", show_download_button = False)
Browse files
app.py
CHANGED
@@ -316,7 +316,7 @@ def restore(
|
|
316 |
|
317 |
if torch.cuda.device_count() == 0:
|
318 |
gr.Warning('Set this space to GPU config to make it work.')
|
319 |
-
return [input_image] * 2, [input_image]
|
320 |
torch.cuda.set_device(SUPIR_device)
|
321 |
event_id = str(time.time_ns())
|
322 |
event_dict = {'event_id': event_id, 'localtime': time.ctime(), 'prompt': prompt, 'a_prompt': a_prompt,
|
@@ -555,8 +555,8 @@ with gr.Blocks() as interface:
|
|
555 |
diffusion_button = gr.Button(value="🚀 Upscale/Restore", variant = "primary", elem_id="process_button")
|
556 |
|
557 |
restore_information = gr.HTML(value="Restart the process to get another result.", visible = False)
|
558 |
-
result_slider = ImageSlider(label='
|
559 |
-
result_gallery = gr.Gallery(label='
|
560 |
|
561 |
gr.Examples(
|
562 |
run_on_click = True,
|
|
|
316 |
|
317 |
if torch.cuda.device_count() == 0:
|
318 |
gr.Warning('Set this space to GPU config to make it work.')
|
319 |
+
return [input_image] * 2, [input_image], None, None
|
320 |
torch.cuda.set_device(SUPIR_device)
|
321 |
event_id = str(time.time_ns())
|
322 |
event_dict = {'event_id': event_id, 'localtime': time.ctime(), 'prompt': prompt, 'a_prompt': a_prompt,
|
|
|
555 |
diffusion_button = gr.Button(value="🚀 Upscale/Restore", variant = "primary", elem_id="process_button")
|
556 |
|
557 |
restore_information = gr.HTML(value="Restart the process to get another result.", visible = False)
|
558 |
+
result_slider = ImageSlider(label='Comparator', show_label=False, elem_id="slider1", show_download_button = False)
|
559 |
+
result_gallery = gr.Gallery(label='Downloadable results', show_label=True, elem_id="gallery1")
|
560 |
|
561 |
gr.Examples(
|
562 |
run_on_click = True,
|