VictorSanh HugoLaurencon HF staff commited on
Commit
c1b9f92
1 Parent(s): a30d891
Files changed (1) hide show
  1. app_dialogue.py +7 -0
app_dialogue.py CHANGED
@@ -475,6 +475,13 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
475
  inputs=decoding_strategy,
476
  outputs=top_p,
477
  )
 
 
 
 
 
 
 
478
 
479
  def model_inference(
480
  model_selector,
 
475
  inputs=decoding_strategy,
476
  outputs=top_p,
477
  )
478
+ gr.Markdown(
479
+ """**💡 Pro tip**:\\
480
+ You can input an arbitrary number of images at arbitrary positions in the same query.\\
481
+ You will need to input each image with its URL with the syntax `<fake_token_around_image><image:IMAGE_URL><fake_token_around_image>`.\\
482
+ 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`.\\
483
+ 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>`."""
484
+ )
485
 
486
  def model_inference(
487
  model_selector,