TroglodyteDerivations
commited on
Updated lines 179 and 335
Browse files
app.py
CHANGED
@@ -176,7 +176,7 @@ def plot_trellis_with_path(trellis, path):
|
|
176 |
fig.tight_layout()
|
177 |
return fig
|
178 |
|
179 |
-
st.pyplot(
|
180 |
|
181 |
# Part J: Merge Repeats | Segments
|
182 |
# Merge the labels
|
@@ -261,7 +261,7 @@ def plot_alignments(trellis, segments, word_segments, waveform=np.random.randn(1
|
|
261 |
fig.tight_layout()
|
262 |
return fig
|
263 |
|
264 |
-
st.pyplot(
|
265 |
|
266 |
# Part L: Merge words | Segments
|
267 |
# Merge words
|
@@ -331,8 +331,8 @@ def plot_alignments(trellis, segments, word_segments, waveform=np.random.randn(1
|
|
331 |
return fig
|
332 |
|
333 |
|
334 |
-
plot_alignments(trellis, segments, word_segments, waveform, sample_rate)
|
335 |
-
st.pyplot(plot_alignments(trellis, word_segments, waveform, sample_rate))
|
336 |
|
337 |
# Part N: Display Segment
|
338 |
def display_segment(i):
|
|
|
176 |
fig.tight_layout()
|
177 |
return fig
|
178 |
|
179 |
+
st.pyplot(plot_trellis_with_path(trellis, path))
|
180 |
|
181 |
# Part J: Merge Repeats | Segments
|
182 |
# Merge the labels
|
|
|
261 |
fig.tight_layout()
|
262 |
return fig
|
263 |
|
264 |
+
st.pyplot()
|
265 |
|
266 |
# Part L: Merge words | Segments
|
267 |
# Merge words
|
|
|
331 |
return fig
|
332 |
|
333 |
|
334 |
+
#plot_alignments(trellis, segments, word_segments, waveform, sample_rate)
|
335 |
+
st.pyplot(plot_alignments(trellis, segments, word_segments, waveform=np.random.randn(1024), sample_rate=44100))
|
336 |
|
337 |
# Part N: Display Segment
|
338 |
def display_segment(i):
|