Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,9 +38,11 @@ informal english:''')
|
|
| 38 |
|
| 39 |
@st.cache(allow_output_mutation=True)
|
| 40 |
def get_model():
|
| 41 |
-
tokenizer = AutoTokenizer.from_pretrained("gpt2")
|
| 42 |
#model = AutoModelWithLMHead.from_pretrained("BigSalmon/MrLincoln12")
|
| 43 |
-
model = AutoModelWithLMHead.from_pretrained("BigSalmon/Points")
|
|
|
|
|
|
|
| 44 |
return model, tokenizer
|
| 45 |
|
| 46 |
model, tokenizer = get_model()
|
|
|
|
| 38 |
|
| 39 |
@st.cache(allow_output_mutation=True)
|
| 40 |
def get_model():
|
| 41 |
+
#tokenizer = AutoTokenizer.from_pretrained("gpt2")
|
| 42 |
#model = AutoModelWithLMHead.from_pretrained("BigSalmon/MrLincoln12")
|
| 43 |
+
#model = AutoModelWithLMHead.from_pretrained("BigSalmon/Points")
|
| 44 |
+
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln91Paraphrase")
|
| 45 |
+
model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln91Paraphrase")
|
| 46 |
return model, tokenizer
|
| 47 |
|
| 48 |
model, tokenizer = get_model()
|