normlizer-fix3

This commit is contained in:
Untone 2024-09-27 10:16:47 +03:00
parent e1ae8a2de0
commit e2761ee3d8

View File

@ -26,7 +26,7 @@ def segment_text(text):
""" """
# Encode the input text for the model # Encode the input text for the model
# inputs = tokenizer.encode("segment: " + text, return_tensors="pt") # 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 # Generate predictions
with torch.no_grad(): with torch.no_grad():