Spaces:
Running
on
Zero
Running
on
Zero
fixing 3
Browse files
app.py
CHANGED
@@ -54,9 +54,7 @@ def pil_image_to_data_uri(img, format="PNG"):
|
|
54 |
def clear_session(image):
|
55 |
global clear_flag
|
56 |
clear_flag = True
|
57 |
-
|
58 |
-
temp_uri = pil_image_to_data_uri(ones)
|
59 |
-
return gr.update(link=temp_uri), gr.update(value=None)
|
60 |
|
61 |
|
62 |
def assign_gpu(options, img_init, text_init, prompt_template_init, style_name_init, seeds_init, val_r_values_init, faster_init, model_name_init, input_type):
|
|
|
54 |
def clear_session(image):
|
55 |
global clear_flag
|
56 |
clear_flag = True
|
57 |
+
return gr.update(value=None), gr.update(value=None)
|
|
|
|
|
58 |
|
59 |
|
60 |
def assign_gpu(options, img_init, text_init, prompt_template_init, style_name_init, seeds_init, val_r_values_init, faster_init, model_name_init, input_type):
|