update code
Browse files
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)
|
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)
|