Sheng Lei commited on
Commit
51c5d35
1 Parent(s): 9d5283f

Update Endpoint

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ model = BertForSequenceClassification.from_pretrained("sleiyer/restricted_item_d
16
  tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
17
 
18
  # Function to predict the class of a single input text
19
- def predict(text):
20
  # Preprocess the input text
21
  inputs = tokenizer(text, return_tensors='pt', truncation=True, padding=True)
22
 
 
16
  tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
17
 
18
  # Function to predict the class of a single input text
19
+ def predict(text: str):
20
  # Preprocess the input text
21
  inputs = tokenizer(text, return_tensors='pt', truncation=True, padding=True)
22