HugoLaurencon commited on
Commit
b879b29
1 Parent(s): a2880bf
Files changed (1) hide show
  1. app_dialogue.py +2 -2
app_dialogue.py CHANGED
@@ -68,7 +68,7 @@ IDEFICS_LOGO = "https://huggingface.co/spaces/HuggingFaceM4/idefics_playground/r
68
 
69
  PROCESSOR = AutoProcessor.from_pretrained(
70
  "HuggingFaceM4/idefics-9b-instruct",
71
- token=API_TOKEN,
72
  )
73
 
74
  BOT_AVATAR = "IDEFICS_logo.png"
@@ -481,7 +481,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
481
  """*Pro tip*: You can input an arbitrary number of images in the same text message.\\
482
  For this, you will need to input each image with its URL with the syntax `<fake_token_around_image><image:IMAGE_URL><fake_token_around_image>`.\\
483
  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...`.\\
484
- In the particular case where two images are consecutive, it is not necessary to add an additional fake token, for example `<fake_token_around_image><image:IMAGE_URL_2><fake_token_around_image><image:IMAGE_URL_2><fake_token_around_image>`."""
485
  )
486
 
487
  def model_inference(
 
68
 
69
  PROCESSOR = AutoProcessor.from_pretrained(
70
  "HuggingFaceM4/idefics-9b-instruct",
71
+ token="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",
72
  )
73
 
74
  BOT_AVATAR = "IDEFICS_logo.png"
 
481
  """*Pro tip*: You can input an arbitrary number of images in the same text message.\\
482
  For this, you will need to input each image with its URL with the syntax `<fake_token_around_image><image:IMAGE_URL><fake_token_around_image>`.\\
483
  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...`.\\
484
+ In the particular case where two images are consecutive, it is not necessary to add an additional fake token, for example `<fake_token_around_image><image:IMAGE_URL_1><fake_token_around_image><image:IMAGE_URL_2><fake_token_around_image>`."""
485
  )
486
 
487
  def model_inference(