Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
| 4 |
# preprocess input
|
| 5 |
# return input_ids matrix
|
| 6 |
tokenizer = AutoTokenizer.from_pretrained("QuickRead/PPO_training")
|
| 7 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("
|
| 8 |
|
| 9 |
def preprocess(inp):
|
| 10 |
input_ids = tokenizer(inp, return_tensors="pt").input_ids
|
|
|
|
| 4 |
# preprocess input
|
| 5 |
# return input_ids matrix
|
| 6 |
tokenizer = AutoTokenizer.from_pretrained("QuickRead/PPO_training")
|
| 7 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("SophieTr/PPO-policy_v2")
|
| 8 |
|
| 9 |
def preprocess(inp):
|
| 10 |
input_ids = tokenizer(inp, return_tensors="pt").input_ids
|