HugoLaurencon commited on
Commit
e9c2350
1 Parent(s): 05ddc83

pro_tip_fix (#34)

Browse files

- change pro tip html (7100620a3a6ca51f8c44c56db701cdf2b154262f)

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(