Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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>
|
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):
|