Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def plot_pitch_contour(audio_file):
|
|
| 25 |
plt.title('Pitch Contour')
|
| 26 |
plt.xlabel('Time (s)')
|
| 27 |
plt.ylabel('Pitch (Hz)')
|
| 28 |
-
plt.ylim(0,
|
| 29 |
|
| 30 |
buf = BytesIO()
|
| 31 |
plt.savefig(buf, format="png", dpi=100)
|
|
|
|
| 25 |
plt.title('Pitch Contour')
|
| 26 |
plt.xlabel('Time (s)')
|
| 27 |
plt.ylabel('Pitch (Hz)')
|
| 28 |
+
plt.ylim(0, 350) # Set the upper limit to the max pitch value
|
| 29 |
|
| 30 |
buf = BytesIO()
|
| 31 |
plt.savefig(buf, format="png", dpi=100)
|