Files changed (1) hide show
  1. app_dialogue.py +7 -0
app_dialogue.py CHANGED
@@ -477,6 +477,13 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
477
  inputs=decoding_strategy,
478
  outputs=top_p,
479
  )
 
 
 
 
 
 
 
480
 
481
  def model_inference(
482
  model_selector,
 
477
  inputs=decoding_strategy,
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(
489
  model_selector,