Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,10 @@ def get_model():
|
|
39 |
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln80Paraphrase")
|
40 |
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln82Paraphrase")
|
41 |
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln82Paraphrase")
|
42 |
-
model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln83Paraphrase")
|
43 |
-
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln83Paraphrase")
|
|
|
|
|
44 |
tokenizer2 = AutoTokenizer.from_pretrained("gpt2")
|
45 |
model2 = AutoModelForCausalLM.from_pretrained("gpt2")
|
46 |
return model, model2, tokenizer, tokenizer2
|
|
|
39 |
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln80Paraphrase")
|
40 |
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln82Paraphrase")
|
41 |
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln82Paraphrase")
|
42 |
+
#model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln83Paraphrase")
|
43 |
+
#tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln83Paraphrase")
|
44 |
+
model = AutoModelForCausalLM.from_pretrained("BigSalmon/InformalToFormalLincoln87Paraphrase")
|
45 |
+
tokenizer = AutoTokenizer.from_pretrained("BigSalmon/InformalToFormalLincoln87Paraphrase")
|
46 |
tokenizer2 = AutoTokenizer.from_pretrained("gpt2")
|
47 |
model2 = AutoModelForCausalLM.from_pretrained("gpt2")
|
48 |
return model, model2, tokenizer, tokenizer2
|