AYYasaswini commited on
Commit
8eb7a1a
·
verified ·
1 Parent(s): 1578737

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ model.eval()
10
  def predict(input_text):
11
  # Your preprocessing and prediction code
12
  # output = model(input_text)
13
- tokens = tokenize(input_text) # Define this function based on your tokenizer
14
  input_tensor = torch.tensor(tokens).unsqueeze(0) # Add batch dimension
15
 
16
  with torch.no_grad():
 
10
  def predict(input_text):
11
  # Your preprocessing and prediction code
12
  # output = model(input_text)
13
+ tokens = tokenize(input_text) # Define this function based on your tokenizer
14
  input_tensor = torch.tensor(tokens).unsqueeze(0) # Add batch dimension
15
 
16
  with torch.no_grad():