Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,9 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def get_model():
|
17 |
tokenizer = AutoTokenizer.from_pretrained("gpt2")
|
18 |
-
model = AutoModelWithLMHead.from_pretrained("BigSalmon/MrLincoln12")
|
|
|
|
|
19 |
model.to(device)
|
20 |
return model, tokenizer
|
21 |
|
|
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def get_model():
|
17 |
tokenizer = AutoTokenizer.from_pretrained("gpt2")
|
18 |
+
#model = AutoModelWithLMHead.from_pretrained("BigSalmon/MrLincoln12")
|
19 |
+
model = AutoModelWithLMHead.from_pretrained("EleutherAI/gpt-neo-125M")
|
20 |
+
EleutherAI/gpt-neo-125M
|
21 |
model.to(device)
|
22 |
return model, tokenizer
|
23 |
|