james0430 commited on
Commit
705299c
1 Parent(s): 00d6178

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -22,10 +22,8 @@ def plot_kaldi_pitch(mic_used,audio_path,mic_file):
22
 
23
  time_axis = torch.linspace(0, end_time, pitch.shape[1])
24
  ln1 = axis.plot(time_axis, pitch[0], linewidth=2, label='Pitch', color='green')
25
- axis.set_ylim((-1.3, 1.3))
26
-
27
-
28
  lns = ln1
 
29
  labels = [l.get_label() for l in lns]
30
  axis.legend(lns, labels, loc=0)
31
  plt.savefig("test.png")
 
22
 
23
  time_axis = torch.linspace(0, end_time, pitch.shape[1])
24
  ln1 = axis.plot(time_axis, pitch[0], linewidth=2, label='Pitch', color='green')
 
 
 
25
  lns = ln1
26
+
27
  labels = [l.get_label() for l in lns]
28
  axis.legend(lns, labels, loc=0)
29
  plt.savefig("test.png")