normlizer-fix3
This commit is contained in:
parent
e1ae8a2de0
commit
e2761ee3d8
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue
Block a user