Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,10 @@ def get_model():
|
|
35 |
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln76Paraphrase")
|
36 |
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln78Paraphrase")
|
37 |
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln78Paraphrase")
|
38 |
-
model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln80Paraphrase")
|
39 |
-
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln80Paraphrase")
|
|
|
|
|
40 |
tokenizer2 = AutoTokenizer.from_pretrained("gpt2")
|
41 |
model2 = AutoModelForCausalLM.from_pretrained("gpt2")
|
42 |
return model, model2, tokenizer, tokenizer2
|
|
|
35 |
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln76Paraphrase")
|
36 |
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln78Paraphrase")
|
37 |
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln78Paraphrase")
|
38 |
+
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln80Paraphrase")
|
39 |
+
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln80Paraphrase")
|
40 |
+
model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln82Paraphrase")
|
41 |
+
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln82Paraphrase")
|
42 |
tokenizer2 = AutoTokenizer.from_pretrained("gpt2")
|
43 |
model2 = AutoModelForCausalLM.from_pretrained("gpt2")
|
44 |
return model, model2, tokenizer, tokenizer2
|