HugoLaurencon HF staff commited on
Commit
7100620
1 Parent(s): 05ddc83

change pro tip html

Browse files
Files changed (1) hide show
  1. 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
- """**💡 Pro tip**:\\
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 `<fake_token_around_image><image:IMAGE_URL><fake_token_around_image>`.\\
486
- 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`.\\
487
- 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>`."""
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>&lt;fake_token_around_image&gt;&lt;image:IMAGE_URL&gt;&lt;fake_token_around_image&gt;</code>.<br>
486
+ For example, for two images, you could input <code>TEXT_1&lt;fake_token_around_image&gt;&lt;image:IMAGE_URL_1&gt;&lt;fake_token_around_image&gt;TEXT_2&lt;fake_token_around_image&gt;&lt;image:IMAGE_URL_2&gt;&lt;fake_token_around_image&gt;TEXT_3</code>.<br>
487
+ In the particular case where two images are consecutive, it is not necessary to add an additional separator: <code>&lt;fake_token_around_image&gt;&lt;image:IMAGE_URL_1&gt;&lt;fake_token_around_image&gt;&lt;image:IMAGE_URL_2&gt;&lt;fake_token_around_image&gt;</code>.</p>"""
488
  )
489
 
490
  def model_inference(