dh-mc commited on
Commit
e5347af
1 Parent(s): db6381e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,8 +116,8 @@ def respond(
116
  answer = partial_text
117
  (whitespace_score, repetition_score, total_repetitions) = detect_repetitions(answer, debug=True)
118
  partial_text += "\n\nRepetition Metrics:\n"
119
- partial_text += f"1. Whitespace Score: {whitespace_score:.3f}\n"
120
- partial_text += f"1. Repetition Score: {repetition_score:.3f}\n"
121
  partial_text += f"1. Total Repetitions: {total_repetitions:.3f}\n"
122
  partial_text += (
123
  f"1. Repetition Ratio: {total_repetitions / len(answer):.3f}\n"
 
116
  answer = partial_text
117
  (whitespace_score, repetition_score, total_repetitions) = detect_repetitions(answer, debug=True)
118
  partial_text += "\n\nRepetition Metrics:\n"
119
+ partial_text += f"1. EWC Repetition Score: {whitespace_score:.3f}\n"
120
+ partial_text += f"1. Text Repetition Score: {repetition_score:.3f}\n"
121
  partial_text += f"1. Total Repetitions: {total_repetitions:.3f}\n"
122
  partial_text += (
123
  f"1. Repetition Ratio: {total_repetitions / len(answer):.3f}\n"