mr2along commited on
Commit
f634650
1 Parent(s): ee3bcf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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%)<br>"
72
  elif similarity_score >= 70:
73
- html_output += "ACCEPTABLE (70% - 85%)<br>"
74
  elif similarity_score >= 50:
75
- html_output += "NEEDS IMPROVEMENT (50% - 70%)<br>"
76
  else:
77
- html_output += "POOR (<50%)<br>"
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>"