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