DetGC commited on
Commit
bed59d0
·
verified ·
1 Parent(s): 9fb7d02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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