Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,10 @@ async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0
|
|
82 |
raise Exception() from e
|
83 |
if task.done() and result is not None and not isinstance(result, tuple):
|
84 |
with lock:
|
85 |
-
png_path = "img.png"
|
|
|
|
|
|
|
86 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, seed)
|
87 |
return image
|
88 |
return None
|
|
|
82 |
raise Exception() from e
|
83 |
if task.done() and result is not None and not isinstance(result, tuple):
|
84 |
with lock:
|
85 |
+
# png_path = "img.png"
|
86 |
+
png_path = get_current_time() + ".png"
|
87 |
+
|
88 |
+
get_current_time()
|
89 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, seed)
|
90 |
return image
|
91 |
return None
|