typo
Browse files
app.py
CHANGED
@@ -67,14 +67,14 @@ if __name__ == "__main__":
|
|
67 |
with demo:
|
68 |
gr.Markdown(
|
69 |
"""
|
70 |
-
# π Color
|
71 |
|
72 |
This is a demo of how you can obtain the probabilities of each generated token, and use them to
|
73 |
color code the model output. Internally, it relies on
|
74 |
[`compute_transition_scores`](https://huggingface.co/docs/transformers/main/en/main_classes/text_generation#transformers.GenerationMixin.compute_transition_scores),
|
75 |
which was added in `transformers` v4.26.0.
|
76 |
|
77 |
-
β οΈ For instance, with the pre-populated input and its color
|
78 |
`google/flan-t5-base` struggles with arithmetics.
|
79 |
|
80 |
π€ Feel free to clone this demo and modify it to your needs π€
|
|
|
67 |
with demo:
|
68 |
gr.Markdown(
|
69 |
"""
|
70 |
+
# π Color-Coded Text Generation π
|
71 |
|
72 |
This is a demo of how you can obtain the probabilities of each generated token, and use them to
|
73 |
color code the model output. Internally, it relies on
|
74 |
[`compute_transition_scores`](https://huggingface.co/docs/transformers/main/en/main_classes/text_generation#transformers.GenerationMixin.compute_transition_scores),
|
75 |
which was added in `transformers` v4.26.0.
|
76 |
|
77 |
+
β οΈ For instance, with the pre-populated input and its color-coded output, you can see that
|
78 |
`google/flan-t5-base` struggles with arithmetics.
|
79 |
|
80 |
π€ Feel free to clone this demo and modify it to your needs π€
|