Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ STYLE = """
|
|
7 |
}
|
8 |
.tree {
|
9 |
padding: 0px;
|
10 |
-
margin:
|
11 |
box-sizing: border-box;
|
12 |
font-size: 16px;
|
13 |
width: 100%;
|
@@ -18,6 +18,7 @@ STYLE = """
|
|
18 |
padding-top: 20px;
|
19 |
position: relative;
|
20 |
transition: .5s;
|
|
|
21 |
}
|
22 |
.tree li {
|
23 |
display: inline-table;
|
@@ -106,7 +107,7 @@ import numpy as np
|
|
106 |
tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
|
107 |
model = AutoModelForCausalLM.from_pretrained("gpt2")
|
108 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
109 |
-
|
110 |
def generate_html(token, node):
|
111 |
"""Recursively generate HTML for the tree."""
|
112 |
|
|
|
7 |
}
|
8 |
.tree {
|
9 |
padding: 0px;
|
10 |
+
margin: 0!important;
|
11 |
box-sizing: border-box;
|
12 |
font-size: 16px;
|
13 |
width: 100%;
|
|
|
18 |
padding-top: 20px;
|
19 |
position: relative;
|
20 |
transition: .5s;
|
21 |
+
margin: 0!important;
|
22 |
}
|
23 |
.tree li {
|
24 |
display: inline-table;
|
|
|
107 |
tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
|
108 |
model = AutoModelForCausalLM.from_pretrained("gpt2")
|
109 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
110 |
+
pritn("Loading finished.")
|
111 |
def generate_html(token, node):
|
112 |
"""Recursively generate HTML for the tree."""
|
113 |
|