Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def format_output(response, sentences):
|
|
31 |
# Format the output
|
32 |
formatted_results = []
|
33 |
for score, sentence in results:
|
34 |
-
formatted_results.append(f"Sentence: {sentence}, Score: {score:.4f}")
|
35 |
return "\n".join(formatted_results)
|
36 |
else:
|
37 |
return f"Unexpected response format: {response}"
|
|
|
31 |
# Format the output
|
32 |
formatted_results = []
|
33 |
for score, sentence in results:
|
34 |
+
formatted_results.append(f"Sentence: {sentence.strip()}, Score: {score:.4f}\n")
|
35 |
return "\n".join(formatted_results)
|
36 |
else:
|
37 |
return f"Unexpected response format: {response}"
|