Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,13 +68,13 @@ def compare_texts(reference_text, transcribed_text):
|
|
68 |
# html_output = f"<strong>Fidelity Class:</strong> # Tạo output HTML với các mức đánh giá chi tiết hơn
|
69 |
html_output = f"<strong>Fidelity Class:</strong> "
|
70 |
if similarity_score >= 85:
|
71 |
-
html_output += "GOOD (>=85%)
|
72 |
elif similarity_score >= 70:
|
73 |
-
html_output += "ACCEPTABLE (70% - 85%)
|
74 |
elif similarity_score >= 50:
|
75 |
-
html_output += "NEEDS IMPROVEMENT (50% - 70%)
|
76 |
else:
|
77 |
-
html_output += "POOR (<50%)
|
78 |
|
79 |
html_output += f"<strong>Quality Score:</strong> {similarity_score}%<br>"
|
80 |
html_output += f"<strong>Transcribed Text:</strong> {transcribed_text}<br>"
|
|
|
68 |
# html_output = f"<strong>Fidelity Class:</strong> # Tạo output HTML với các mức đánh giá chi tiết hơn
|
69 |
html_output = f"<strong>Fidelity Class:</strong> "
|
70 |
if similarity_score >= 85:
|
71 |
+
html_output += f"<strong>GOOD (>=85%)</strong><br>"
|
72 |
elif similarity_score >= 70:
|
73 |
+
html_output += f"<strong>ACCEPTABLE (70% - 85%)</strong><br>"
|
74 |
elif similarity_score >= 50:
|
75 |
+
html_output += f"<strong>NEEDS IMPROVEMENT (50% - 70%)</strong><br>"
|
76 |
else:
|
77 |
+
html_output += f"<strong>POOR (<50%)</strong><br>"
|
78 |
|
79 |
html_output += f"<strong>Quality Score:</strong> {similarity_score}%<br>"
|
80 |
html_output += f"<strong>Transcribed Text:</strong> {transcribed_text}<br>"
|