Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -124,20 +124,20 @@ if uploaded_file is not None:
|
|
124 |
)
|
125 |
st.plotly_chart(fig, use_container_width=True)
|
126 |
|
127 |
-
# Load the audio for displaying waveform
|
128 |
-
y, sr = librosa.load(uploaded_file, sr=None)
|
129 |
|
130 |
-
# Plot the audio waveform
|
131 |
-
st.subheader("Audio Waveform")
|
132 |
-
fig_waveform = go.Figure(data=[go.Scatter(y=y, mode='lines', line=dict(color='#1DB954'))])
|
133 |
-
fig_waveform.update_layout(
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
)
|
140 |
-
st.plotly_chart(fig_waveform, use_container_width=True)
|
141 |
|
142 |
# π Show balloons after successfully displaying the results
|
143 |
st.balloons()
|
|
|
124 |
)
|
125 |
st.plotly_chart(fig, use_container_width=True)
|
126 |
|
127 |
+
# # Load the audio for displaying waveform
|
128 |
+
# y, sr = librosa.load(uploaded_file, sr=None)
|
129 |
|
130 |
+
# # Plot the audio waveform
|
131 |
+
# st.subheader("Audio Waveform")
|
132 |
+
# fig_waveform = go.Figure(data=[go.Scatter(y=y, mode='lines', line=dict(color='#1DB954'))])
|
133 |
+
# fig_waveform.update_layout(
|
134 |
+
# title="Audio Waveform",
|
135 |
+
# xaxis_title="Time",
|
136 |
+
# yaxis_title="Amplitude",
|
137 |
+
# paper_bgcolor='rgba(0,0,0,0)',
|
138 |
+
# plot_bgcolor='rgba(0,0,0,0)'
|
139 |
+
# )
|
140 |
+
# st.plotly_chart(fig_waveform, use_container_width=True)
|
141 |
|
142 |
# π Show balloons after successfully displaying the results
|
143 |
st.balloons()
|