π
Browse files
app.py
CHANGED
@@ -61,10 +61,11 @@ if __name__ == "__main__":
|
|
61 |
with demo:
|
62 |
gr.Markdown(
|
63 |
"""
|
64 |
-
# Color Coded Text Generation
|
65 |
|
66 |
-
This is a demo of how you can obtain the probabilities of each token
|
67 |
-
color code the
|
|
|
68 |
|
69 |
Internally, it relies on [`compute_transition_scores`](https://huggingface.co/docs/transformers/main/en/main_classes/text_generation#transformers.GenerationMixin.compute_transition_scores),
|
70 |
which was added in `transformers` v4.26.0.
|
|
|
61 |
with demo:
|
62 |
gr.Markdown(
|
63 |
"""
|
64 |
+
# π Color Coded Text Generation π
|
65 |
|
66 |
+
This is a demo of how you can obtain the probabilities of each generated token, and use them to
|
67 |
+
color code the model output.
|
68 |
+
Feel free to clone this demo and modify it to your needs π€
|
69 |
|
70 |
Internally, it relies on [`compute_transition_scores`](https://huggingface.co/docs/transformers/main/en/main_classes/text_generation#transformers.GenerationMixin.compute_transition_scores),
|
71 |
which was added in `transformers` v4.26.0.
|