evalstate HF Staff commited on
Commit
1d4c101
·
verified ·
1 Parent(s): e93dc4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ def infer(input_image, prompt, seed=42, randomize_seed=False, guidance_scale=2.5
25
 
26
  Args:
27
  input_image (PIL.Image.Image): The path to the input image to be edited.
28
- prompt (str): Text description of the desired edit to apply to the image. Examples: "Remove glasses", "Add a hat", "Change background to beach".
29
  seed (int, optional): Random seed for reproducible generation.
30
  Must be between 0 and MAX_SEED (2^31 - 1). Defaults to 42.
31
  randomize_seed (bool, optional): If True, generates a random seed instead of using the provided seed value.
@@ -65,7 +65,7 @@ def infer(input_image, prompt, seed=42, randomize_seed=False, guidance_scale=2.5
65
  @spaces.GPU(duration=25)
66
  def infer_example(input_image, prompt):
67
  image, seed, _ = infer(input_image, prompt)
68
- return image, seed
69
 
70
  css="""
71
  #col-container {
 
25
 
26
  Args:
27
  input_image (PIL.Image.Image): The path to the input image to be edited.
28
+ prompt (str): Text description of the desired edit to apply to the image. Examples: "Remove glasses", "Add a hat", "Change background to beach". Keep to around 50-60 words.
29
  seed (int, optional): Random seed for reproducible generation.
30
  Must be between 0 and MAX_SEED (2^31 - 1). Defaults to 42.
31
  randomize_seed (bool, optional): If True, generates a random seed instead of using the provided seed value.
 
65
  @spaces.GPU(duration=25)
66
  def infer_example(input_image, prompt):
67
  image, seed, _ = infer(input_image, prompt)
68
+ return image, "Generation Seed: " + str(seed)
69
 
70
  css="""
71
  #col-container {