Shitao commited on
Commit
c0df1a8
1 Parent(s): d89eff2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -165,8 +165,8 @@ def run_for_examples(text, img1, img2, img3, height, width, guidance_scale, infe
165
  description = """
166
  OmniGen is a unified image generation model that you can use to perform various tasks, including but not limited to text-to-image generation, subject-driven generation, Identity-Preserving Generation, and image-conditioned generation.
167
 
168
- For multi-modal to image generation, you should pass a string as `prompt`, and a list of image paths as `input_images`. The placeholder in the prompt should be in the format of `<img><|image_*|></img>`.
169
- For example, use a image of a woman to generate a new image:
170
  prompt = "A woman holds a bouquet of flowers and faces the camera. Thw woman is \<img\>\<|image_1|\>\</img\>."
171
  """
172
 
@@ -178,7 +178,7 @@ with gr.Blocks() as demo:
178
  with gr.Column():
179
  # 文本输入框
180
  prompt_input = gr.Textbox(
181
- label="Enter your prompt, use <img><|image_i|></img> tokens for images", placeholder="Type your prompt here..."
182
  )
183
 
184
  with gr.Row(equal_height=True):
 
165
  description = """
166
  OmniGen is a unified image generation model that you can use to perform various tasks, including but not limited to text-to-image generation, subject-driven generation, Identity-Preserving Generation, and image-conditioned generation.
167
 
168
+ For multi-modal to image generation, you should pass a string as `prompt`, and a list of image paths as `input_images`. The placeholder in the prompt should be in the format of `<img><|image_*|></img>` (for the first image, the placeholder is <img><|image_1|></img>. for the second image, the the placeholder is <img><|image_2|></img>).
169
+ For example, use an image of a woman to generate a new image:
170
  prompt = "A woman holds a bouquet of flowers and faces the camera. Thw woman is \<img\>\<|image_1|\>\</img\>."
171
  """
172
 
 
178
  with gr.Column():
179
  # 文本输入框
180
  prompt_input = gr.Textbox(
181
+ label="Enter your prompt, use <img><|image_i|></img> to represent i-th input image", placeholder="Type your prompt here..."
182
  )
183
 
184
  with gr.Row(equal_height=True):