Spaces:
Runtime error
Runtime error
pro_tip_fix
#34
by
HugoLaurencon
- opened
- app_dialogue.py +5 -5
app_dialogue.py
CHANGED
@@ -480,11 +480,11 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
|
|
480 |
outputs=top_p,
|
481 |
)
|
482 |
gr.Markdown(
|
483 |
-
"""
|
484 |
-
You can input an arbitrary number of images at arbitrary positions in the same query
|
485 |
-
You will need to input each image with its URL with the syntax
|
486 |
-
For example, for two images, you could input
|
487 |
-
In the particular case where two images are consecutive, it is not necessary to add an additional separator:
|
488 |
)
|
489 |
|
490 |
def model_inference(
|
|
|
480 |
outputs=top_p,
|
481 |
)
|
482 |
gr.Markdown(
|
483 |
+
"""<p><strong>💡 Pro tip</strong>:<br>
|
484 |
+
You can input an arbitrary number of images at arbitrary positions in the same query.<br>
|
485 |
+
You will need to input each image with its URL with the syntax <code><fake_token_around_image><image:IMAGE_URL><fake_token_around_image></code>.<br>
|
486 |
+
For example, for two images, you could input <code>TEXT_1<fake_token_around_image><image:IMAGE_URL_1><fake_token_around_image>TEXT_2<fake_token_around_image><image:IMAGE_URL_2><fake_token_around_image>TEXT_3</code>.<br>
|
487 |
+
In the particular case where two images are consecutive, it is not necessary to add an additional separator: <code><fake_token_around_image><image:IMAGE_URL_1><fake_token_around_image><image:IMAGE_URL_2><fake_token_around_image></code>.</p>"""
|
488 |
)
|
489 |
|
490 |
def model_inference(
|