Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def get_example():
|
|
82 |
[
|
83 |
"Two men are celebrating with raised glasses in a restaurant. A man is <img><|image_1|></img>. The other man is <img><|image_2|></img>.",
|
84 |
"./imgs/test_cases/young_musk.jpg",
|
85 |
-
"./imgs/test_cases/
|
86 |
None,
|
87 |
1024,
|
88 |
1024,
|
@@ -167,7 +167,7 @@ OmniGen is a unified image generation model that you can use to perform various
|
|
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
|
171 |
"""
|
172 |
|
173 |
# Gradio 接口
|
|
|
82 |
[
|
83 |
"Two men are celebrating with raised glasses in a restaurant. A man is <img><|image_1|></img>. The other man is <img><|image_2|></img>.",
|
84 |
"./imgs/test_cases/young_musk.jpg",
|
85 |
+
"./imgs/test_cases/young_trump.jpeg",
|
86 |
None,
|
87 |
1024,
|
88 |
1024,
|
|
|
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 |
|
173 |
# Gradio 接口
|