Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ async def infer(model_str, prompt, nprompt="", height=0, width=0, steps=0, cfg=0
|
|
85 |
with lock:
|
86 |
# png_path = "img.png"
|
87 |
global loopcounter
|
88 |
-
png_path = get_current_time() + "_" + loopcounter + ".png"
|
89 |
loopcounter += 1
|
90 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, seed)
|
91 |
return image
|
|
|
85 |
with lock:
|
86 |
# png_path = "img.png"
|
87 |
global loopcounter
|
88 |
+
png_path = get_current_time() + "_" + str(loopcounter) + ".png"
|
89 |
loopcounter += 1
|
90 |
image = save_image(result, png_path, model_str, prompt, nprompt, height, width, steps, cfg, seed)
|
91 |
return image
|