Spaces:
Sleeping
Sleeping
update app
Browse files
app.py
CHANGED
|
@@ -34,9 +34,9 @@ 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(["musescore", "-o", svg_file, tmp_midi])
|
| 38 |
subprocess.run(["musescore", "-o", audio_file, tmp_midi])
|
| 39 |
-
return
|
| 40 |
else:
|
| 41 |
return None, None
|
| 42 |
|
|
|
|
| 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 None, audio_file
|
| 40 |
else:
|
| 41 |
return None, None
|
| 42 |
|