Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,7 @@ 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 |
-
|
19 |
-
model = AutoModelWithLMHead.from_pretrained("EleutherAI/gpt-neo-125M")
|
20 |
model.to(device)
|
21 |
return model, tokenizer
|
22 |
|
|
|
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 |
|