lucalp commited on
Commit
9fefb2b
·
1 Parent(s): 00d6bf2

update default prompt

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -35,14 +35,14 @@ class Config:
35
  BLT_MAX_BYTES_FOR_DEMO: int = 512
36
 
37
  # Gradio
38
- DEFAULT_PROMPT: str = "Daenerys Targaryen is in Game of Thrones, a fantasy epic by George R.R. Martin. Daenerys Targaryen is in Game of Thrones, a fantasy epic by George R.R. Martin."
39
  GRADIO_THEME = gr.themes.Origin()
40
  GRADIO_TITLE: str = "BLT's Entropy-based Patcher vs. Tokenizer Visualisation"
41
  GRADIO_DESC: str = (
42
  "Enter text to visualize its segmentation according to different methods:\n"
43
- f"1. **Byte Latent Transformer (BLT):** Entropy-based patching plot and patched text. Spaces are replaced by '_'. Using `blt_main_entropy_100m_512w`.\n"
44
  f"2. **Tiktoken (GPT-4):** Text segmented by `{TIKTOKEN_ENCODING_NAME}` tokens.\n"
45
- f"3. **Llama 3:** Text segmented by the `{LLAMA3_MODEL_NAME}` tokenizer.\n"
46
  "Blog post coming soon, https://lucalp.dev/ or [@lucalp__](https://twitter.com/lucalp__) for updates."
47
  )
48
 
 
35
  BLT_MAX_BYTES_FOR_DEMO: int = 512
36
 
37
  # Gradio
38
+ DEFAULT_PROMPT: str = "I have potato blood in my veins. My life is potato. In your working life and in your living, it's always potatoes. I have potato blood in my veins. My life is potato. In your working life and in your living, it's always potatoes."
39
  GRADIO_THEME = gr.themes.Origin()
40
  GRADIO_TITLE: str = "BLT's Entropy-based Patcher vs. Tokenizer Visualisation"
41
  GRADIO_DESC: str = (
42
  "Enter text to visualize its segmentation according to different methods:\n"
43
+ f"1. **Byte Latent Transformer (BLT):** Entropy-based patching plot and patched text. Spaces are replaced by '_' for viz purposes. Using `blt_main_entropy_100m_512w`.\n"
44
  f"2. **Tiktoken (GPT-4):** Text segmented by `{TIKTOKEN_ENCODING_NAME}` tokens.\n"
45
+ f"3. **Llama 3:** Text segmented by the `{LLAMA3_MODEL_NAME}` tokenizer.\n\n\n"
46
  "Blog post coming soon, https://lucalp.dev/ or [@lucalp__](https://twitter.com/lucalp__) for updates."
47
  )
48