sad
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def generate_paraphrases(text, setting, output_format):
|
|
96 |
}
|
97 |
|
98 |
for i, sentence in enumerate(sentences):
|
99 |
-
inputs = paraphraser_tokenizer(f'
|
100 |
|
101 |
# Generate paraphrases using the specified parameters
|
102 |
outputs = paraphraser_model.generate(
|
|
|
96 |
}
|
97 |
|
98 |
for i, sentence in enumerate(sentences):
|
99 |
+
inputs = paraphraser_tokenizer(f'{sentence}', return_tensors="pt", padding="longest", truncation=True, max_length=max_length).to(device)
|
100 |
|
101 |
# Generate paraphrases using the specified parameters
|
102 |
outputs = paraphraser_model.generate(
|