Update app.py
Browse files
app.py
CHANGED
@@ -81,6 +81,9 @@ def gen_fnseed(model_str, prompt, seed=1):
|
|
81 |
print(e)
|
82 |
print(f"Task aborted: {model_str}")
|
83 |
result = None
|
|
|
|
|
|
|
84 |
finally:
|
85 |
loop.close()
|
86 |
return result
|
|
|
81 |
print(e)
|
82 |
print(f"Task aborted: {model_str}")
|
83 |
result = None
|
84 |
+
with lock:
|
85 |
+
image = "https://huggingface.co/spaces/Yntec/HuggingfaceDiffusion/resolve/main/protest.png"
|
86 |
+
result = image
|
87 |
finally:
|
88 |
loop.close()
|
89 |
return result
|