Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,11 +110,11 @@ STYLE = """
|
|
110 |
}
|
111 |
"""
|
112 |
|
113 |
-
from transformers import GPT2Tokenizer, AutoModelForCausalLM
|
114 |
import numpy as np
|
115 |
|
116 |
-
tokenizer =
|
117 |
-
model = AutoModelForCausalLM.from_pretrained("
|
118 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
119 |
print("Loading finished.")
|
120 |
def generate_html(token, node):
|
|
|
110 |
}
|
111 |
"""
|
112 |
|
113 |
+
from transformers import GPT2Tokenizer, AutoModelForCausalLM, AutoTokenizer
|
114 |
import numpy as np
|
115 |
|
116 |
+
tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-2")
|
117 |
+
model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2")
|
118 |
tokenizer.pad_token_id = tokenizer.eos_token_id
|
119 |
print("Loading finished.")
|
120 |
def generate_html(token, node):
|