clone3 commited on
Commit
f462bc0
1 Parent(s): f2f51c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -99,7 +99,7 @@ def generate(
99
  ).images
100
  paths = save_images(result, profile, metadata={"prompt": prompt, "seed": seed, "width": width, "height": height, "guidance_scale": guidance_scale, "num_inference_steps": num_inference_steps})
101
  print(time.time() - start_time)
102
- return paths, seed
103
 
104
  examples = [
105
  "portrait photo of a girl, photograph, highly detailed face, depth of field, moody light, golden hour, style by Dan Winters, Russell James, Steve McCurry, centered, extremely detailed, Nikon D850, award winning photography",
@@ -175,11 +175,11 @@ with gr.Blocks(css="style.css") as demo:
175
  num_inference_steps,
176
  randomize_seed
177
  ],
178
- outputs=[result, seed, result.string("Image Paths")],
179
  api_name="run",
180
  )
181
 
182
  if __name__ == "__main__":
183
  demo.queue(api_open=False)
184
  # demo.queue(max_size=20).launch()
185
- demo.launch()
 
99
  ).images
100
  paths = save_images(result, profile, metadata={"prompt": prompt, "seed": seed, "width": width, "height": height, "guidance_scale": guidance_scale, "num_inference_steps": num_inference_steps})
101
  print(time.time() - start_time)
102
+ return paths, seed, "your_additional_string"
103
 
104
  examples = [
105
  "portrait photo of a girl, photograph, highly detailed face, depth of field, moody light, golden hour, style by Dan Winters, Russell James, Steve McCurry, centered, extremely detailed, Nikon D850, award winning photography",
 
175
  num_inference_steps,
176
  randomize_seed
177
  ],
178
+ outputs=[result, seed, "your_additional_string"],
179
  api_name="run",
180
  )
181
 
182
  if __name__ == "__main__":
183
  demo.queue(api_open=False)
184
  # demo.queue(max_size=20).launch()
185
+ demo.launch()