Mrchuw commited on
Commit
01a313e
1 Parent(s): 7aceb75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -44,9 +44,10 @@ def add_random_noise(prompt, noise_level=1.00):
44
 
45
  def build():
46
  def zip_files():
47
- with ZipFile(f"{b.prompt.split(' ')[0]}.zip", "w") as zipObj:
48
  for file in b.imagens:
49
  zipObj.write(file, os.path.basename(file))
 
50
  return f"{b.prompt.split(' ')[0]}.zip"
51
  def clear():
52
  return gr.update(value=0),gr.update(value=0)
 
44
 
45
  def build():
46
  def zip_files():
47
+ with ZipFile(f"{b.prompt.split(' ')[0]}_{random.randint(0, 10000)}.zip", "w") as zipObj:
48
  for file in b.imagens:
49
  zipObj.write(file, os.path.basename(file))
50
+ b.imagens = []
51
  return f"{b.prompt.split(' ')[0]}.zip"
52
  def clear():
53
  return gr.update(value=0),gr.update(value=0)