Update app.py
Browse files
app.py
CHANGED
|
@@ -146,12 +146,11 @@ if st.button('Сгенерировать потери'):
|
|
| 146 |
start_time = time.time()
|
| 147 |
with st.spinner('Ожидайте...'):
|
| 148 |
output = inference(re_im, session, onnx_model, input_names, output_names)
|
| 149 |
-
|
| 150 |
st.subheader('3. Визуализация')
|
| 151 |
fig = visualize(target, lossy_input, output, sr)
|
| 152 |
st.pyplot(fig)
|
| 153 |
st.success('Сделано!')
|
| 154 |
-
st.text(str(time.time() - start_time))
|
| 155 |
sf.write('target.wav', target, sr)
|
| 156 |
sf.write('lossy.wav', lossy_input, sr)
|
| 157 |
sf.write('enhanced.wav', output, sr)
|
|
|
|
| 146 |
start_time = time.time()
|
| 147 |
with st.spinner('Ожидайте...'):
|
| 148 |
output = inference(re_im, session, onnx_model, input_names, output_names)
|
| 149 |
+
st.text(str(time.time() - start_time))
|
| 150 |
st.subheader('3. Визуализация')
|
| 151 |
fig = visualize(target, lossy_input, output, sr)
|
| 152 |
st.pyplot(fig)
|
| 153 |
st.success('Сделано!')
|
|
|
|
| 154 |
sf.write('target.wav', target, sr)
|
| 155 |
sf.write('lossy.wav', lossy_input, sr)
|
| 156 |
sf.write('enhanced.wav', output, sr)
|