clone3 commited on
Commit
95cfd38
·
1 Parent(s): 2fdae87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
61
  return seed
62
 
63
  def save_image(img, profile: gr.OAuthProfile | None, metadata: dict):
64
- unique_name = str(uuid.uuid4()) + '.png'
65
  img.save(unique_name)
66
  return unique_name
67
 
@@ -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 "hi"+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",
 
61
  return seed
62
 
63
  def save_image(img, profile: gr.OAuthProfile | None, metadata: dict):
64
+ unique_name = 'hi' + str(uuid.uuid4()) + '.png'
65
  img.save(unique_name)
66
  return unique_name
67
 
 
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",