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