Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,7 @@ def compare_hindi_sentences(expected, transcribed):
|
|
33 |
expected_words = expected.strip().split()
|
34 |
expected_clean = expected.translate(str.maketrans('', '', string.punctuation))
|
35 |
expected_words = expected_clean.strip().split()
|
|
|
36 |
transcribed_words = transcribed.strip().split()
|
37 |
matcher = difflib.SequenceMatcher(None, transcribed_words, expected_words)
|
38 |
errors = []
|
|
|
33 |
expected_words = expected.strip().split()
|
34 |
expected_clean = expected.translate(str.maketrans('', '', string.punctuation))
|
35 |
expected_words = expected_clean.strip().split()
|
36 |
+
transcribed = transcribed.translate(str.maketrans('', '', string.punctuation))
|
37 |
transcribed_words = transcribed.strip().split()
|
38 |
matcher = difflib.SequenceMatcher(None, transcribed_words, expected_words)
|
39 |
errors = []
|