Spaces:
Running
on
Zero
Running
on
Zero
update default prompt
Browse files
app.py
CHANGED
@@ -35,14 +35,14 @@ class Config:
|
|
35 |
BLT_MAX_BYTES_FOR_DEMO: int = 512
|
36 |
|
37 |
# Gradio
|
38 |
-
DEFAULT_PROMPT: str = "
|
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 |
|