anteaterho commited on
Commit
79ae37c
·
1 Parent(s): 4089d10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -101,7 +101,7 @@ def text2img(prompt, negative_prompt, x, y, isRandom, fixedRandom ,num_inference
101
  _seed = str(seed)
102
  _prompt = re.sub(r"[^\uAC00-\uD7A30-9a-zA-Z\s]", "", _prompt)
103
  timestamp = datetime.datetime.now().strftime("%y%m%d_%H%M%S")
104
- image.save( "./output/" + "sdxl_base_" + "_seed_" + _seed+ "_time_" + timestamp +".png")
105
  #image.save("sdxl_prompt_" + "_seed_" + _seed + ".png")
106
  print(seed)
107
 
@@ -116,8 +116,8 @@ def text2img(prompt, negative_prompt, x, y, isRandom, fixedRandom ,num_inference
116
  def img2img(prompt, negative_prompt, image):
117
 
118
  image = refine(prompt=prompt, negative_prompt=negative_prompt, image=image).images[0]
119
- timestamp = datetime.datetime.now().strftime("%y%m%d_%H%M%S")
120
- image.save( "./output/" + "sdxl_refine_" + "_seed_" + timestamp +".png")
121
 
122
  return image
123
 
 
101
  _seed = str(seed)
102
  _prompt = re.sub(r"[^\uAC00-\uD7A30-9a-zA-Z\s]", "", _prompt)
103
  timestamp = datetime.datetime.now().strftime("%y%m%d_%H%M%S")
104
+ #image.save( "./output/" + "sdxl_base_" + "_seed_" + _seed+ "_time_" + timestamp +".png")
105
  #image.save("sdxl_prompt_" + "_seed_" + _seed + ".png")
106
  print(seed)
107
 
 
116
  def img2img(prompt, negative_prompt, image):
117
 
118
  image = refine(prompt=prompt, negative_prompt=negative_prompt, image=image).images[0]
119
+ #timestamp = datetime.datetime.now().strftime("%y%m%d_%H%M%S")
120
+ #image.save( "./output/" + "sdxl_refine_" + "_seed_" + timestamp +".png")
121
 
122
  return image
123