ford442 commited on
Commit
3b480cb
·
verified ·
1 Parent(s): d9b588a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -132,7 +132,7 @@ def save_image(img):
132
  img.save(unique_name,optimize=False,compress_level=0)
133
  return unique_name
134
 
135
- def uploadNote(prompt,num_inference_steps,guidance_scale,timestamp,denoise):
136
  filename= f'tst_A_{timestamp}.txt'
137
  with open(filename, "w") as f:
138
  f.write(f"Realvis 5.0 (Tester B) \n")
@@ -180,7 +180,7 @@ def generate_30(
180
  options["use_resolution_binning"] = True
181
  images = []
182
  timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
183
- uploadNote(prompt,num_inference_steps,guidance_scale,timestamp,denoise)
184
  batch_options = options.copy()
185
  rv_image = pipe(**batch_options).images[0]
186
  sd_image_path = f"rv50_B_{timestamp}.png"
@@ -220,7 +220,7 @@ def generate_60(
220
  options["use_resolution_binning"] = True
221
  images = []
222
  timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
223
- uploadNote(prompt,num_inference_steps,guidance_scale,timestamp,denoise)
224
  batch_options = options.copy()
225
  rv_image = pipe(**batch_options).images[0]
226
  sd_image_path = f"rv50_B_{timestamp}.png"
@@ -260,7 +260,7 @@ def generate_90(
260
  options["use_resolution_binning"] = True
261
  images = []
262
  timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
263
- uploadNote(prompt,num_inference_steps,guidance_scale,timestamp,denoise)
264
  batch_options = options.copy()
265
  rv_image = pipe(**batch_options).images[0]
266
  sd_image_path = f"rv50_B_{timestamp}.png"
 
132
  img.save(unique_name,optimize=False,compress_level=0)
133
  return unique_name
134
 
135
+ def uploadNote(prompt,num_inference_steps,guidance_scale,timestamp):
136
  filename= f'tst_A_{timestamp}.txt'
137
  with open(filename, "w") as f:
138
  f.write(f"Realvis 5.0 (Tester B) \n")
 
180
  options["use_resolution_binning"] = True
181
  images = []
182
  timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
183
+ uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
184
  batch_options = options.copy()
185
  rv_image = pipe(**batch_options).images[0]
186
  sd_image_path = f"rv50_B_{timestamp}.png"
 
220
  options["use_resolution_binning"] = True
221
  images = []
222
  timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
223
+ uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
224
  batch_options = options.copy()
225
  rv_image = pipe(**batch_options).images[0]
226
  sd_image_path = f"rv50_B_{timestamp}.png"
 
260
  options["use_resolution_binning"] = True
261
  images = []
262
  timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
263
+ uploadNote(prompt,num_inference_steps,guidance_scale,timestamp)
264
  batch_options = options.copy()
265
  rv_image = pipe(**batch_options).images[0]
266
  sd_image_path = f"rv50_B_{timestamp}.png"