aquibmoin commited on
Commit
5112962
1 Parent(s): d008f91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}"