Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
b903d50
1
Parent(s):
ffd3c58
Update app.py
Browse files
app.py
CHANGED
|
@@ -152,14 +152,15 @@ def GenerateMIDI(num_tok, idrums, iinstr, progress=gr.Progress()):
|
|
| 152 |
c.append(colors[s[3]])
|
| 153 |
|
| 154 |
plt.figure(figsize=(14,5))
|
| 155 |
-
|
| 156 |
-
|
|
|
|
| 157 |
plt.scatter(x,y, c=c)
|
| 158 |
plt.xlabel("Time")
|
| 159 |
plt.ylabel("Pitch")
|
| 160 |
plt.close()
|
| 161 |
|
| 162 |
-
yield [500, output1],
|
| 163 |
|
| 164 |
#=================================================================================================
|
| 165 |
|
|
|
|
| 152 |
c.append(colors[s[3]])
|
| 153 |
|
| 154 |
plt.figure(figsize=(14,5))
|
| 155 |
+
ax=plt.axes(title='Allegro Music Transformer Composition')
|
| 156 |
+
ax.set_facecolor('black')
|
| 157 |
+
|
| 158 |
plt.scatter(x,y, c=c)
|
| 159 |
plt.xlabel("Time")
|
| 160 |
plt.ylabel("Pitch")
|
| 161 |
plt.close()
|
| 162 |
|
| 163 |
+
yield [500, output1], ax, "Allegro-Music-Transformer-Music-Composition.mid", (44100, audio)
|
| 164 |
|
| 165 |
#=================================================================================================
|
| 166 |
|