Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,15 @@ def plot_kaldi_pitch(mic_used,audio_path,mic_file):
|
|
20 |
time_axis = torch.linspace(0, end_time, wavform.shape[1])
|
21 |
axis.plot(time_axis, wavform[0], linewidth=1, color='gray', alpha=0.3)
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
labels = [l.get_label() for l in lns]
|
28 |
axis.legend(lns, labels, loc=0)
|
|
|
20 |
time_axis = torch.linspace(0, end_time, wavform.shape[1])
|
21 |
axis.plot(time_axis, wavform[0], linewidth=1, color='gray', alpha=0.3)
|
22 |
|
23 |
+
|
24 |
+
|
25 |
+
axis2 = axis.twinx()
|
26 |
+
time_axis = torch.linspace(0, end_time, nfcc.shape[1])
|
27 |
+
ln2 = axis2.plot(
|
28 |
+
time_axis, nfcc[0], linewidth=2, label='NFCC', color='blue', linestyle='--')
|
29 |
+
|
30 |
+
lns = ln2
|
31 |
+
|
32 |
|
33 |
labels = [l.get_label() for l in lns]
|
34 |
axis.legend(lns, labels, loc=0)
|