Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0
|
|
| 74 |
raise Exception() from e
|
| 75 |
if task.done() and result is not None and not isinstance(result, tuple):
|
| 76 |
with lock:
|
| 77 |
-
png_path = "
|
| 78 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, seed)
|
| 79 |
return image
|
| 80 |
return None
|
|
|
|
| 74 |
raise Exception() from e
|
| 75 |
if task.done() and result is not None and not isinstance(result, tuple):
|
| 76 |
with lock:
|
| 77 |
+
png_path = "img.png"
|
| 78 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, seed)
|
| 79 |
return image
|
| 80 |
return None
|