fffiloni commited on
Commit
e1bbbd3
1 Parent(s): c9e6700

tempo seed fix

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -86,6 +86,11 @@ def resize_image(image_path, target_height):
86
 
87
  @spaces.GPU(enable_queue=True)
88
  def inference(input_image, prompt, a_prompt, n_prompt, denoise_steps, upscale, alpha, cfg, seed):
 
 
 
 
 
89
  input_image = resize_image(input_image, 512)
90
  process_size = 768
91
  resize_preproc = transforms.Compose([
 
86
 
87
  @spaces.GPU(enable_queue=True)
88
  def inference(input_image, prompt, a_prompt, n_prompt, denoise_steps, upscale, alpha, cfg, seed):
89
+
90
+ #tempo fix for seed equals-1
91
+ if seed == -1:
92
+ seed = 0
93
+
94
  input_image = resize_image(input_image, 512)
95
  process_size = 768
96
  resize_preproc = transforms.Compose([