joaogante HF staff commited on
Commit
a5e42e5
β€’
1 Parent(s): 6fb202b
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,14 +67,14 @@ if __name__ == "__main__":
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 πŸ€—
 
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 πŸ€—