asigalov61
commited on
Commit
•
ef02e98
1
Parent(s):
22ee648
Update app.py
Browse files
app.py
CHANGED
@@ -165,15 +165,15 @@ def GenerateMIDI(progress=gr.Progress()):
|
|
165 |
y.append(s[4])
|
166 |
c.append(colors[s[3]])
|
167 |
|
168 |
-
|
169 |
-
ax=plt.axes(title=
|
170 |
ax.set_facecolor('black')
|
171 |
|
172 |
plt.scatter(x,y, c=c)
|
173 |
plt.xlabel("Time")
|
174 |
plt.ylabel("Pitch")
|
175 |
|
176 |
-
yield [500, output1],
|
177 |
|
178 |
#=================================================================================================
|
179 |
|
|
|
165 |
y.append(s[4])
|
166 |
c.append(colors[s[3]])
|
167 |
|
168 |
+
plt.figure(figsize=(14,5))
|
169 |
+
ax=plt.axes(title='Allegro Music Transformer')
|
170 |
ax.set_facecolor('black')
|
171 |
|
172 |
plt.scatter(x,y, c=c)
|
173 |
plt.xlabel("Time")
|
174 |
plt.ylabel("Pitch")
|
175 |
|
176 |
+
yield [500, output1], plt, "Allegro-Music-Transformer-Music-Composition.mid", (44100, audio)
|
177 |
|
178 |
#=================================================================================================
|
179 |
|