Update app.py
Browse files
app.py
CHANGED
@@ -334,7 +334,7 @@ if st.button('Сгенерировать потери'):
|
|
334 |
|
335 |
df_1 = pd.DataFrame(columns=['Audio', 'PESQ', 'STOI', 'PLCMOSv1'])
|
336 |
|
337 |
-
df_1['
|
338 |
|
339 |
df_1['PESQ'] = psq_mas
|
340 |
|
@@ -430,7 +430,7 @@ if st.button('Сгенерировать потери'):
|
|
430 |
|
431 |
st.subheader('4. Метрики аудио')
|
432 |
#st.dataframe(df_1)
|
433 |
-
st.write("#### "+"
|
434 |
col1, col2, col3, col4, col5 = st.columns(5)
|
435 |
col1.metric("PESQ", value = round(psq_mas[0],3))
|
436 |
col2.metric("STOI", value = round(stoi_mass[0],3))
|
@@ -439,7 +439,7 @@ if st.button('Сгенерировать потери'):
|
|
439 |
col5.metric("WAcc", value = round(WER_mass[0],3))
|
440 |
|
441 |
|
442 |
-
st.write("#### "+"
|
443 |
col1, col2, col3, col4, col5 = st.columns(5)
|
444 |
col1.metric("PESQ", value = round(psq_mas[1],3), delta = str(round(-(abs(psq_mas[1] - psq_mas[0]) / psq_mas[0]) * 100.0,3))+'%')
|
445 |
col2.metric("STOI", value = round(stoi_mass[1],3), delta = str(round(-(abs(stoi_mass[1] - stoi_mass[0]) / stoi_mass[0]) * 100.0,3))+'%')
|
@@ -448,7 +448,7 @@ if st.button('Сгенерировать потери'):
|
|
448 |
col5.metric("WAcc", value = round(WER_mass[1],3), delta = str(round(-(abs(WER_mass[1] - WER_mass[0]) / WER_mass[0]) * 100.0,3))+'%')
|
449 |
|
450 |
|
451 |
-
st.write("#### "+"
|
452 |
col1, col2, col3, col4, col5 = st.columns(5)
|
453 |
PESQ_s = sign_x_y(psq_mas[1], psq_mas[2])
|
454 |
col1.metric("PESQ", value = round(psq_mas[2],3), delta = PESQ_s + str(round((abs(psq_mas[2] - psq_mas[1]) / psq_mas[1]) * 100.0,3))+'%')
|
|
|
334 |
|
335 |
df_1 = pd.DataFrame(columns=['Audio', 'PESQ', 'STOI', 'PLCMOSv1'])
|
336 |
|
337 |
+
df_1['Аудио'] = ['Оригинал', 'С потерями', 'Улучшенное']
|
338 |
|
339 |
df_1['PESQ'] = psq_mas
|
340 |
|
|
|
430 |
|
431 |
st.subheader('4. Метрики аудио')
|
432 |
#st.dataframe(df_1)
|
433 |
+
st.write("#### "+"Оригинал")
|
434 |
col1, col2, col3, col4, col5 = st.columns(5)
|
435 |
col1.metric("PESQ", value = round(psq_mas[0],3))
|
436 |
col2.metric("STOI", value = round(stoi_mass[0],3))
|
|
|
439 |
col5.metric("WAcc", value = round(WER_mass[0],3))
|
440 |
|
441 |
|
442 |
+
st.write("#### "+"С потерями")
|
443 |
col1, col2, col3, col4, col5 = st.columns(5)
|
444 |
col1.metric("PESQ", value = round(psq_mas[1],3), delta = str(round(-(abs(psq_mas[1] - psq_mas[0]) / psq_mas[0]) * 100.0,3))+'%')
|
445 |
col2.metric("STOI", value = round(stoi_mass[1],3), delta = str(round(-(abs(stoi_mass[1] - stoi_mass[0]) / stoi_mass[0]) * 100.0,3))+'%')
|
|
|
448 |
col5.metric("WAcc", value = round(WER_mass[1],3), delta = str(round(-(abs(WER_mass[1] - WER_mass[0]) / WER_mass[0]) * 100.0,3))+'%')
|
449 |
|
450 |
|
451 |
+
st.write("#### "+"Улучшенное")
|
452 |
col1, col2, col3, col4, col5 = st.columns(5)
|
453 |
PESQ_s = sign_x_y(psq_mas[1], psq_mas[2])
|
454 |
col1.metric("PESQ", value = round(psq_mas[2],3), delta = PESQ_s + str(round((abs(psq_mas[2] - psq_mas[1]) / psq_mas[1]) * 100.0,3))+'%')
|