normlizer-fix3
This commit is contained in:
@@ -26,7 +26,7 @@ def segment_text(text):
|
||||
"""
|
||||
# Encode the input text for the model
|
||||
# inputs = tokenizer.encode("segment: " + text, return_tensors="pt")
|
||||
inputs = tokenizer("segment: " + input_text, return_tensors="pt")
|
||||
inputs = tokenizer("segment: " + text, return_tensors="pt")
|
||||
|
||||
# Generate predictions
|
||||
with torch.no_grad():
|
||||
|
Reference in New Issue
Block a user