Update app.py
Browse files
app.py
CHANGED
|
@@ -221,10 +221,10 @@ if st.button('Сгенерировать потери'):
|
|
| 221 |
|
| 222 |
#lsd_mass=[lsd_orig, lsd_lossy, lsd_enhanced]
|
| 223 |
|
| 224 |
-
if samplerate !=
|
| 225 |
-
data_lossy = librosa.resample(data_lossy, orig_sr=48000, target_sr=
|
| 226 |
-
data_clean = librosa.resample(data_clean, orig_sr=48000, target_sr=
|
| 227 |
-
data_enhanced = librosa.resample(data_enhanced, orig_sr=48000, target_sr=
|
| 228 |
|
| 229 |
|
| 230 |
|
|
@@ -289,7 +289,8 @@ if st.button('Сгенерировать потери'):
|
|
| 289 |
# Присваиваем новый мультииндекс столбцам
|
| 290 |
#df_2.columns = new_columns
|
| 291 |
#df_merged = df_1.merge(df_2, left_index=True, right_index=True)
|
| 292 |
-
|
|
|
|
| 293 |
st.dataframe(df_1, hide_index = True, use_container_width=st.session_state.use_container_width)
|
| 294 |
|
| 295 |
|
|
|
|
| 221 |
|
| 222 |
#lsd_mass=[lsd_orig, lsd_lossy, lsd_enhanced]
|
| 223 |
|
| 224 |
+
if samplerate != 8000:
|
| 225 |
+
data_lossy = librosa.resample(data_lossy, orig_sr=48000, target_sr=8000)
|
| 226 |
+
data_clean = librosa.resample(data_clean, orig_sr=48000, target_sr=8000)
|
| 227 |
+
data_enhanced = librosa.resample(data_enhanced, orig_sr=48000, target_sr=8000)
|
| 228 |
|
| 229 |
|
| 230 |
|
|
|
|
| 289 |
# Присваиваем новый мультииндекс столбцам
|
| 290 |
#df_2.columns = new_columns
|
| 291 |
#df_merged = df_1.merge(df_2, left_index=True, right_index=True)
|
| 292 |
+
|
| 293 |
+
st.checkbox("Use container width", value=False, key="use_container_width")
|
| 294 |
st.dataframe(df_1, hide_index = True, use_container_width=st.session_state.use_container_width)
|
| 295 |
|
| 296 |
|