huzey commited on
Commit
24c1fd0
1 Parent(s): e85b6ae
Files changed (1) hide show
  1. app.py +2 -2
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=13)
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: (default_images, default_outputs), outputs=[input_gallery, output_gallery])
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(