myn0908 commited on
Commit
3982e62
1 Parent(s): c10fea8

update code

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def assign_gpu(options, img_init, text_init, prompt_template_init, style_name_in
54
  global clear_flag
55
  if clear_flag:
56
  clear_flag = False # Reset the flag after handling the clear action
57
- return gr.update(value=None), gr.update(value=None)
58
  else:
59
  if options == 'GPU':
60
  decorated_run = spaces.GPU(run_gpu)
 
54
  global clear_flag
55
  if clear_flag:
56
  clear_flag = False # Reset the flag after handling the clear action
57
+ return gr.update(value=None)
58
  else:
59
  if options == 'GPU':
60
  decorated_run = spaces.GPU(run_gpu)