Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,9 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
14 |
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def get_model():
|
17 |
-
|
18 |
-
|
|
|
19 |
return model, tokenizer
|
20 |
|
21 |
model, tokenizer = get_model()
|
|
|
14 |
|
15 |
@st.cache(allow_output_mutation=True)
|
16 |
def get_model():
|
17 |
+
#model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln21")
|
18 |
+
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln31")
|
19 |
+
model = AutoModelWithLMHead.from_pretrained("BigSalmon/InformalToFormalLincoln31")
|
20 |
return model, tokenizer
|
21 |
|
22 |
model, tokenizer = get_model()
|