XDHDD commited on
Commit
c7a5c57
1 Parent(s): 1c89b98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -454,8 +454,9 @@ if st.button('Сгенерировать потери'):
454
  #st.bar_chart(df_1, x="Audio", y="PLCMOSv2")
455
  #st.bar_chart(df_1, x="Audio", y="WER")
456
 
457
- col1, col2, col3, col4, col5 = st.columns(5)
458
  st.write("Original")
 
459
  col1.metric("PESQ", value = psq_mas[0])
460
  col2.metric("STOI", value = stoi_mass[0])
461
  col3.metric("PLCMOSv1", value = PLC_massv1[0])
@@ -463,21 +464,22 @@ if st.button('Сгенерировать потери'):
463
  col5.metric("WER", value = WER_mass[0])
464
 
465
 
466
- col1, col2, col3, col4, col5 = st.columns(5)
467
  st.write("Lossy")
468
- col1.metric("PESQ", value = psq_mas[1], delta = (abs(psq_mas[1] - psq_mas[0]) / psq_mas[0]) * 100.0)
469
- col2.metric("STOI", value = stoi_mass[1], delta = (abs(stoi_mass[1] - stoi_mass[0]) / stoi_mass[0]) * 100.0)
470
- col3.metric("PLCMOSv1", value = PLC_massv1[1], delta = (abs(PLC_massv1[1] - PLC_massv1[0]) / PLC_massv1[0]) * 100.0)
471
- col4.metric("PLCMOSv2", value = PLC_massv2[1], delta = (abs(PLC_massv2[1] - PLC_massv2[0]) / PLC_massv2[0]) * 100.0)
472
- col5.metric("WER", value = WER_mass[1], delta = (abs(WER_mass[1] - WER_mass[0]) / WER_mass[0]) * 100.0, delta_color="inverse")
473
-
474
  col1, col2, col3, col4, col5 = st.columns(5)
 
 
 
 
 
 
 
475
  st.write("Enhanced")
 
476
  col1.metric("PESQ", value = psq_mas[2], delta = (abs(psq_mas[2] - psq_mas[1]) / psq_mas[1]) * 100.0)
477
  col2.metric("STOI", value = stoi_mass[2], delta = (abs(stoi_mass[2] - stoi_mass[1]) / stoi_mass[1]) * 100.0)
478
  col3.metric("PLCMOSv1", value = PLC_massv1[2], delta = (abs(PLC_massv1[2] - PLC_massv1[1]) / PLC_massv1[1]) * 100.0)
479
  col4.metric("PLCMOSv2", value = PLC_massv2[2], delta = (abs(PLC_massv2[2] - PLC_massv2[1]) / PLC_massv2[1]) * 100.0)
480
- col5.metric("WER", value = WER_mass[2], delta = (abs(WER_mass[2] - WER_mass[1]) / WER_mass[1]) * 100.0, delta_color="inverse")
481
 
482
  #col1.metric("PESQ", value = psq_mas[-1], delta = psq_mas[-1] - psq_mas[-2])
483
  #col2.metric("STOI", value = stoi_mass[-1], delta = stoi_mass[-1] - stoi_mass[-2])
 
454
  #st.bar_chart(df_1, x="Audio", y="PLCMOSv2")
455
  #st.bar_chart(df_1, x="Audio", y="WER")
456
 
457
+
458
  st.write("Original")
459
+ col1, col2, col3, col4, col5 = st.columns(5)
460
  col1.metric("PESQ", value = psq_mas[0])
461
  col2.metric("STOI", value = stoi_mass[0])
462
  col3.metric("PLCMOSv1", value = PLC_massv1[0])
 
464
  col5.metric("WER", value = WER_mass[0])
465
 
466
 
 
467
  st.write("Lossy")
 
 
 
 
 
 
468
  col1, col2, col3, col4, col5 = st.columns(5)
469
+ col1.metric("PESQ", value = psq_mas[1], delta = (abs(psq_mas[1] - psq_mas[0]) / psq_mas[0]) * 100.0, delta_color="inverse")
470
+ col2.metric("STOI", value = stoi_mass[1], delta = (abs(stoi_mass[1] - stoi_mass[0]) / stoi_mass[0]) * 100.0, delta_color="inverse")
471
+ col3.metric("PLCMOSv1", value = PLC_massv1[1], delta = (abs(PLC_massv1[1] - PLC_massv1[0]) / PLC_massv1[0]) * 100.0, delta_color="inverse")
472
+ col4.metric("PLCMOSv2", value = PLC_massv2[1], delta = (abs(PLC_massv2[1] - PLC_massv2[0]) / PLC_massv2[0]) * 100.0, delta_color="inverse")
473
+ #col5.metric("WER", value = WER_mass[1], delta = (abs(WER_mass[1] - WER_mass[0]) / WER_mass[0]) * 100.0, delta_color="inverse")
474
+
475
+
476
  st.write("Enhanced")
477
+ col1, col2, col3, col4, col5 = st.columns(5)
478
  col1.metric("PESQ", value = psq_mas[2], delta = (abs(psq_mas[2] - psq_mas[1]) / psq_mas[1]) * 100.0)
479
  col2.metric("STOI", value = stoi_mass[2], delta = (abs(stoi_mass[2] - stoi_mass[1]) / stoi_mass[1]) * 100.0)
480
  col3.metric("PLCMOSv1", value = PLC_massv1[2], delta = (abs(PLC_massv1[2] - PLC_massv1[1]) / PLC_massv1[1]) * 100.0)
481
  col4.metric("PLCMOSv2", value = PLC_massv2[2], delta = (abs(PLC_massv2[2] - PLC_massv2[1]) / PLC_massv2[1]) * 100.0)
482
+ #col5.metric("WER", value = WER_mass[2], delta = (abs(WER_mass[2] - WER_mass[1]) / WER_mass[1]) * 100.0, delta_color="inverse")
483
 
484
  #col1.metric("PESQ", value = psq_mas[-1], delta = psq_mas[-1] - psq_mas[-2])
485
  #col2.metric("STOI", value = stoi_mass[-1], delta = stoi_mass[-1] - stoi_mass[-2])