nebiyu29 commited on
Commit
05ac656
1 Parent(s): 8439e92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,) #this is where the encoding happens
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