Spaces:
Runtime error
Runtime error
VictorSanh
commited on
Commit
•
4ecc8fd
1
Parent(s):
5453add
some tiny wording
Browse files- app_dialogue.py +6 -5
app_dialogue.py
CHANGED
@@ -478,10 +478,11 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
|
|
478 |
outputs=top_p,
|
479 |
)
|
480 |
gr.Markdown(
|
481 |
-
"""
|
482 |
-
|
483 |
-
|
484 |
-
|
|
|
485 |
)
|
486 |
|
487 |
def model_inference(
|
@@ -865,7 +866,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
|
|
865 |
inputs=[textbox, imagebox],
|
866 |
outputs=[textbox, imagebox, chatbot],
|
867 |
fn=process_example,
|
868 |
-
cache_examples=
|
869 |
examples_per_page=6,
|
870 |
label=(
|
871 |
"Click on any example below to get started.\nFor convenience, the model generations have been"
|
|
|
478 |
outputs=top_p,
|
479 |
)
|
480 |
gr.Markdown(
|
481 |
+
"""**💡 Pro tip**:\\
|
482 |
+
You can input an arbitrary number of images at arbitrary positions in the same query.\\
|
483 |
+
You will need to input each image with its URL with the syntax `<fake_token_around_image><image:IMAGE_URL><fake_token_around_image>`.\\
|
484 |
+
For example, for two images, you could input `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`.\\
|
485 |
+
In the particular case where two images are consecutive, it is not necessary to add an additional separator: `<fake_token_around_image><image:IMAGE_URL_1><fake_token_around_image><image:IMAGE_URL_2><fake_token_around_image>`."""
|
486 |
)
|
487 |
|
488 |
def model_inference(
|
|
|
866 |
inputs=[textbox, imagebox],
|
867 |
outputs=[textbox, imagebox, chatbot],
|
868 |
fn=process_example,
|
869 |
+
cache_examples=False,
|
870 |
examples_per_page=6,
|
871 |
label=(
|
872 |
"Click on any example below to get started.\nFor convenience, the model generations have been"
|