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