joaogante HF staff commited on
Commit
e2ed84a
β€’
1 Parent(s): 0243d8b
Files changed (1) hide show
  1. app.py +4 -3
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 being generated, and use them to
67
- color code the generated text πŸŸ’πŸŸ‘πŸ”΄. Feel free to clone this demo and modify it to your needs πŸ€—
 
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.