linoyts HF Staff commited on
Commit
25ca4c1
·
verified ·
1 Parent(s): 69f6cd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -96,15 +96,15 @@ def generate_image(
96
  adapter_conditioning_factor,
97
  progress=gr.Progress(track_tqdm=True)
98
  ):
99
- prompts = ["a photo of a person img as an olympic athlete",
100
- "a photo of a person img as an olympic swimmer in the olympics",
101
- "a photo of a person img as an olympic gymnist in the olympics",
102
- "a photo of a person img as an olympic runner in the olympics",
103
- "a photo of a person img as an olympic tennis player in the olympics",
104
- "a photo of a person img as an olympic basketball player in the olympics",
105
- "a photo of a person img as an olympic football player in the olympics",
106
- "a photo of a person img as an olympic badminton player in the olympics",
107
- "a photo of a person img as an olympic surfer in the olympics",
108
  ]
109
  prompt = random.choice(prompts)
110
 
@@ -320,7 +320,7 @@ with gr.Blocks(css=css) as demo:
320
 
321
  with gr.Accordion(open=False, label="Advanced Options"):
322
  prompt = gr.Textbox(label="Prompt",
323
- info="something like 'a photo of a man/woman img', 'img' is the trigger word.",
324
  placeholder="A photo of a [man/woman img]...", value="a photo of a person img")
325
  aspect_ratio = gr.Dropdown(label="Output aspect ratio", choices=ASPECT_RATIO_LABELS, value=DEFAULT_ASPECT_RATIO)
326
 
 
96
  adapter_conditioning_factor,
97
  progress=gr.Progress(track_tqdm=True)
98
  ):
99
+ prompts = [f"{prompt} as an olympic athlete",
100
+ f"{prompt} as an olympic swimmer in the olympics",
101
+ f"{prompt} as an olympic gymnist in the olympics",
102
+ f"{prompt} as an olympic runner in the olympics",
103
+ f"{prompt} as an olympic tennis player in the olympics",
104
+ f"{prompt} as an olympic basketball player in the olympics",
105
+ f"{prompt} as an olympic football player in the olympics",
106
+ f"{prompt} as an olympic badminton player in the olympics",
107
+ f"{prompt} as an olympic surfer in the olympics",
108
  ]
109
  prompt = random.choice(prompts)
110
 
 
320
 
321
  with gr.Accordion(open=False, label="Advanced Options"):
322
  prompt = gr.Textbox(label="Prompt",
323
+ info="Try something like 'a photo of a man/woman img', 'img' is the trigger word.",
324
  placeholder="A photo of a [man/woman img]...", value="a photo of a person img")
325
  aspect_ratio = gr.Dropdown(label="Output aspect ratio", choices=ASPECT_RATIO_LABELS, value=DEFAULT_ASPECT_RATIO)
326