Nova-school commited on
Commit
47b2af6
1 Parent(s): 06dcb2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
7
 
8
  tokenizer = AutoTokenizer.from_pretrained('gpt2')
9
  model = AutoModelForCausalLM.from_pretrained('gpt2')
10
- text1 = solara.reactive("Never gonna give you up, never gonna let you")
11
  @solara.component
12
  def Page():
13
  with solara.Column(margin=10):
@@ -36,6 +36,7 @@ def Page():
36
  "><span style="
37
  position: absolute;
38
  top: 5.5ch;
 
39
  line-height: 1em;
40
  left: -0.5px;
41
  font-size: 0.45em"> {token}</span>{tokenizer.decode([token])}</span>"""
 
7
 
8
  tokenizer = AutoTokenizer.from_pretrained('gpt2')
9
  model = AutoModelForCausalLM.from_pretrained('gpt2')
10
+ text1 = solara.reactive("I")
11
  @solara.component
12
  def Page():
13
  with solara.Column(margin=10):
 
36
  "><span style="
37
  position: absolute;
38
  top: 5.5ch;
39
+ bottom: 20px;
40
  line-height: 1em;
41
  left: -0.5px;
42
  font-size: 0.45em"> {token}</span>{tokenizer.decode([token])}</span>"""