Fabrice-TIERCELIN commited on
Commit
7366086
·
verified ·
1 Parent(s): 2f9b0fd
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -20,7 +20,6 @@ def noise_color(color, noise):
20
  return color + random.randint(- noise, noise)
21
 
22
  def predict(source_img, enlarge_top, enlarge_right, enlarge_bottom, enlarge_left, prompt, negative_prompt, denoising_steps, num_inference_steps, guidance_scale, randomize_seed, seed, debug_mode, progress=gr.Progress()):
23
- start = time.time()
24
  progress(0, desc = "Preparing data...")
25
 
26
  if source_img is None:
@@ -117,7 +116,6 @@ def predict(source_img, enlarge_top, enlarge_right, enlarge_bottom, enlarge_left
117
  enlarged_image = None
118
  mask_image = None
119
 
120
- end = time.time()
121
  return [
122
  output_image,
123
  "Start again to get a different result. The new image is " + str(output_width) + " pixels large and " + str(output_height) + " pixels high, so an image of " + str(output_width * output_height) + " pixels." + limitation,
 
20
  return color + random.randint(- noise, noise)
21
 
22
  def predict(source_img, enlarge_top, enlarge_right, enlarge_bottom, enlarge_left, prompt, negative_prompt, denoising_steps, num_inference_steps, guidance_scale, randomize_seed, seed, debug_mode, progress=gr.Progress()):
 
23
  progress(0, desc = "Preparing data...")
24
 
25
  if source_img is None:
 
116
  enlarged_image = None
117
  mask_image = None
118
 
 
119
  return [
120
  output_image,
121
  "Start again to get a different result. The new image is " + str(output_width) + " pixels large and " + str(output_height) + " pixels high, so an image of " + str(output_width * output_height) + " pixels." + limitation,