Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def compare(chosen_word, path):
|
|
51 |
if new_coeff > coeff:
|
52 |
coeff = new_coeff
|
53 |
idx=i
|
54 |
-
return f'
|
55 |
|
56 |
|
57 |
word_choice = gr.inputs.Dropdown(sorted(list(df['replica'].unique())), label="Choose a word")
|
|
|
51 |
if new_coeff > coeff:
|
52 |
coeff = new_coeff
|
53 |
idx=i
|
54 |
+
return f'The similarity coefficient of your pronunciation and the pronunciation of a native speaker is {coeff}. The closer the coefficient is to 1, the better.' + '\nYour pronunciation: [' + ''.join(user) + ']\nClosest native pronunciation: [' + ''.join(etalons[idx]) + ']'
|
55 |
|
56 |
|
57 |
word_choice = gr.inputs.Dropdown(sorted(list(df['replica'].unique())), label="Choose a word")
|