Spaces:
Sleeping
Sleeping
lichorosario
commited on
Commit
•
dd4a4f0
1
Parent(s):
3328375
Ajustar función clear_output en app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,6 @@ def infer(selected_index, prompt, style_prompt, inf_steps, guidance_scale, width
|
|
97 |
|
98 |
return generated_image_path, used_seed, used_prompt
|
99 |
|
100 |
-
return new_result
|
101 |
except Exception as e:
|
102 |
gr.Warning("Error: " + str(e))
|
103 |
|
@@ -162,10 +161,10 @@ def upscale_image(image, resolution, num_inference_steps, strength, hdr, guidanc
|
|
162 |
param_7=scheduler_name,
|
163 |
api_name="/wrapper"
|
164 |
)
|
|
|
165 |
except ValueError as e:
|
166 |
-
|
167 |
|
168 |
-
result = job.result()
|
169 |
return result
|
170 |
|
171 |
|
|
|
97 |
|
98 |
return generated_image_path, used_seed, used_prompt
|
99 |
|
|
|
100 |
except Exception as e:
|
101 |
gr.Warning("Error: " + str(e))
|
102 |
|
|
|
161 |
param_7=scheduler_name,
|
162 |
api_name="/wrapper"
|
163 |
)
|
164 |
+
result = job.result()
|
165 |
except ValueError as e:
|
166 |
+
raise gr.Error(e)
|
167 |
|
|
|
168 |
return result
|
169 |
|
170 |
|