Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def model_classifier(text):
|
|
16 |
if len(text)==0:
|
17 |
return f"the input text is {text}"
|
18 |
else:
|
19 |
-
encoded_input=tokenizer(text,return_tensors="pt",truncation,padding=True
|
20 |
input_ids=encoded_input["input_ids"]
|
21 |
attention_mask=encoded_input["attention_mask"]
|
22 |
|
|
|
16 |
if len(text)==0:
|
17 |
return f"the input text is {text}"
|
18 |
else:
|
19 |
+
encoded_input=tokenizer(text,return_tensors="pt",truncation=True,padding=True) #this is where the encoding happens
|
20 |
input_ids=encoded_input["input_ids"]
|
21 |
attention_mask=encoded_input["attention_mask"]
|
22 |
|