VictorSanh commited on
Commit
3fcbadf
·
1 Parent(s): d03801a

some rendering stuff

Browse files
Files changed (1) hide show
  1. app_dialogue.py +8 -8
app_dialogue.py CHANGED
@@ -415,7 +415,7 @@ with gr.Blocks(title="D", theme=gr.themes.Base()) as demo:
415
  # problematic_bttn = gr.Button("Problematic😬")
416
 
417
  with gr.Row():
418
- with gr.Accordion("Advanced settings", open=True, visible=True) as parameter_row:
419
  system_prompt = gr.Textbox(
420
  value=SYSTEM_PROMPT,
421
  visible=False,
@@ -484,13 +484,13 @@ with gr.Blocks(title="D", theme=gr.themes.Base()) as demo:
484
  inputs=decoding_strategy,
485
  outputs=top_p,
486
  )
487
- gr.Markdown(
488
- """<p><strong>💡 Pro tip</strong>:<br>
489
- You can input an arbitrary number of images at arbitrary positions in the same query.<br>
490
- 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>
491
- 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>
492
- 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>"""
493
- )
494
 
495
  def model_inference(
496
  model_selector,
 
415
  # problematic_bttn = gr.Button("Problematic😬")
416
 
417
  with gr.Row():
418
+ with gr.Accordion("Advanced settings", open=False, visible=True) as parameter_row:
419
  system_prompt = gr.Textbox(
420
  value=SYSTEM_PROMPT,
421
  visible=False,
 
484
  inputs=decoding_strategy,
485
  outputs=top_p,
486
  )
487
+ # gr.Markdown(
488
+ # """<p><strong>💡 Pro tip</strong>:<br>
489
+ # You can input an arbitrary number of images at arbitrary positions in the same query.<br>
490
+ # 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>
491
+ # 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>
492
+ # 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>"""
493
+ # )
494
 
495
  def model_inference(
496
  model_selector,