Spaces:
Sleeping
Sleeping
Update text_converter.py
Browse filesAdding more detail to console logs
- text_converter.py +1 -1
text_converter.py
CHANGED
@@ -105,7 +105,7 @@ def generate_similar_sentence(input_text, min_reading_level, max_reading_level,
|
|
105 |
|
106 |
# Printing all generated texts to the console.
|
107 |
for index, text in enumerate(generated_texts):
|
108 |
-
print(f"Generated text {index + 1}: {text}")
|
109 |
|
110 |
# Printing the selected index and text.
|
111 |
print(f"Selected Iteration: {result_index + 1}")
|
|
|
105 |
|
106 |
# Printing all generated texts to the console.
|
107 |
for index, text in enumerate(generated_texts):
|
108 |
+
print(f"Generated text {index + 1}: {text}\nSimilarity: {generated_text_scores[index][0]}\nReadability Score: {generated_text_scores[index][1]}")
|
109 |
|
110 |
# Printing the selected index and text.
|
111 |
print(f"Selected Iteration: {result_index + 1}")
|