Spaces:
Build error
Build error
Update app.py
Browse files
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.
|
| 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"
|