Spaces:
Runtime error
Runtime error
yash161101
commited on
Commit
•
e462c83
1
Parent(s):
3c57a75
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
14 |
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def get_model():
|
17 |
-
tokenizer =
|
18 |
-
model = AutoModelForCausalLM.from_pretrained("
|
19 |
return model, tokenizer
|
20 |
|
21 |
|
|
|
14 |
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def get_model():
|
17 |
+
tokenizer = AutoModelForCausalLM.from_pretrained("ismaelfaro/gpt2-poems.en")
|
18 |
+
model = AutoModelForCausalLM.from_pretrained("ismaelfaro/gpt2-poems.en")
|
19 |
return model, tokenizer
|
20 |
|
21 |
|