Spaces:
Running
Running
asigalov61
commited on
Commit
•
f126ddb
1
Parent(s):
8c8ea80
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,6 @@ def create_msg(name, data):
|
|
86 |
|
87 |
def run(search_prompt):
|
88 |
mid_seq = []
|
89 |
-
gen_events = int(gen_events)
|
90 |
max_len = gen_events
|
91 |
|
92 |
disable_patch_change = False
|
@@ -103,7 +102,7 @@ def run(search_prompt):
|
|
103 |
yield mid_seq, None, None, init_msgs
|
104 |
|
105 |
for i in range(len(mid_seq)):
|
106 |
-
yield mid_seq, None, None, [create_msg("visualizer_append", mid_seq[i]), create_msg("progress", [i + 1, mid_seq
|
107 |
|
108 |
with open(f"output.mid", 'wb') as f:
|
109 |
f.write(MIDI.score2midi(mid_seq))
|
|
|
86 |
|
87 |
def run(search_prompt):
|
88 |
mid_seq = []
|
|
|
89 |
max_len = gen_events
|
90 |
|
91 |
disable_patch_change = False
|
|
|
102 |
yield mid_seq, None, None, init_msgs
|
103 |
|
104 |
for i in range(len(mid_seq)):
|
105 |
+
yield mid_seq, None, None, [create_msg("visualizer_append", mid_seq[i]), create_msg("progress", [i + 1, len(mid_seq))]
|
106 |
|
107 |
with open(f"output.mid", 'wb') as f:
|
108 |
f.write(MIDI.score2midi(mid_seq))
|