Spaces:
Sleeping
Sleeping
update app
Browse files
app.py
CHANGED
@@ -34,8 +34,8 @@ def parse_abc_notation(text='', conversation_id='debug'):
|
|
34 |
# Convert abc notation to SVG
|
35 |
svg_file = f'tmp/{conversation_id}/{ts}.svg'
|
36 |
audio_file = f'tmp/{conversation_id}/{ts}.mp3'
|
37 |
-
subprocess.run(["
|
38 |
-
subprocess.run(["
|
39 |
return svg_file, audio_file
|
40 |
else:
|
41 |
return None, None
|
|
|
34 |
# Convert abc notation to SVG
|
35 |
svg_file = f'tmp/{conversation_id}/{ts}.svg'
|
36 |
audio_file = f'tmp/{conversation_id}/{ts}.mp3'
|
37 |
+
subprocess.run(["musescore", "-o", svg_file, tmp_midi])
|
38 |
+
subprocess.run(["musescore", "-o", audio_file, tmp_midi])
|
39 |
return svg_file, audio_file
|
40 |
else:
|
41 |
return None, None
|