Spaces:
Running
on
Zero
Running
on
Zero
update ui
Browse files
app.py
CHANGED
@@ -273,7 +273,7 @@ def _ncut_run(*args, **kwargs):
|
|
273 |
return [], "Error: " + str(e)
|
274 |
|
275 |
if USE_SPACES:
|
276 |
-
@spaces.GPU(duration=
|
277 |
def quick_run(*args, **kwargs):
|
278 |
return _ncut_run(*args, **kwargs)
|
279 |
|
@@ -515,7 +515,7 @@ with gr.Blocks() as demo:
|
|
515 |
] = make_parameters_section()
|
516 |
# logging text box
|
517 |
logging_text = gr.Textbox("Logging information", label="Logging", elem_id="logging", type="text", placeholder="Logging information")
|
518 |
-
load_images_button.click(lambda x:
|
519 |
|
520 |
clear_images_button.click(lambda x: ([], []), outputs=[input_gallery, output_gallery])
|
521 |
submit_button.click(
|
|
|
273 |
return [], "Error: " + str(e)
|
274 |
|
275 |
if USE_SPACES:
|
276 |
+
@spaces.GPU(duration=20)
|
277 |
def quick_run(*args, **kwargs):
|
278 |
return _ncut_run(*args, **kwargs)
|
279 |
|
|
|
515 |
] = make_parameters_section()
|
516 |
# logging text box
|
517 |
logging_text = gr.Textbox("Logging information", label="Logging", elem_id="logging", type="text", placeholder="Logging information")
|
518 |
+
load_images_button.click(lambda x: default_images, outputs=input_gallery)
|
519 |
|
520 |
clear_images_button.click(lambda x: ([], []), outputs=[input_gallery, output_gallery])
|
521 |
submit_button.click(
|