Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ model_name = "ayethuzar/tuned-for-patentability"
|
|
51 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
52 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
53 |
|
54 |
-
test = [user_input_abstract[0] + user_input_claims[0]
|
55 |
|
56 |
if submit:
|
57 |
batch = tokenizer(test, padding = True, truncation = True, max_length = 512, return_tensors = "pt")
|
|
|
51 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
52 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
53 |
|
54 |
+
test = [user_input_abstract[0] + user_input_claims[0]]
|
55 |
|
56 |
if submit:
|
57 |
batch = tokenizer(test, padding = True, truncation = True, max_length = 512, return_tensors = "pt")
|