Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def plot_spectrogram_to_image(waveform, sample_rate, n_fft=400):
|
|
42 |
|
43 |
def plot_waveform_to_image(waveform, sample_rate):
|
44 |
plt.figure(figsize=(10, 4))
|
45 |
-
plt.plot(waveform.detach().numpy()[0], color='
|
46 |
plt.axis('off')
|
47 |
buf = io.BytesIO()
|
48 |
plt.savefig(buf, format='png', bbox_inches='tight', pad_inches=0)
|
|
|
42 |
|
43 |
def plot_waveform_to_image(waveform, sample_rate):
|
44 |
plt.figure(figsize=(10, 4))
|
45 |
+
plt.plot(waveform.detach().numpy()[0], color='blue')
|
46 |
plt.axis('off')
|
47 |
buf = io.BytesIO()
|
48 |
plt.savefig(buf, format='png', bbox_inches='tight', pad_inches=0)
|