Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -181,7 +181,7 @@ with gr.Blocks() as demo:
|
|
181 |
now = 0
|
182 |
for line in history[-1]["content"].split('\n\n')[-1].split('\n'):
|
183 |
try:
|
184 |
-
pitch, duration, wait = [int(x) for x in line.split()]
|
185 |
except Exception as e:
|
186 |
continue
|
187 |
plt.plot([now, now+duration], [pitch, pitch], color='black')
|
|
|
181 |
now = 0
|
182 |
for line in history[-1]["content"].split('\n\n')[-1].split('\n'):
|
183 |
try:
|
184 |
+
pitch, duration, wait, velocity, instrument = [int(x) for x in line.split()]
|
185 |
except Exception as e:
|
186 |
continue
|
187 |
plt.plot([now, now+duration], [pitch, pitch], color='black')
|