Spaces:
Sleeping
Sleeping
update app
Browse files- app.py +3 -3
- requirements.txt +1 -2
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 |
-
|
38 |
-
subprocess.run(["musescore",
|
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 svg_file, audio_file
|
40 |
else:
|
41 |
return None, None
|
42 |
|
requirements.txt
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
gradio==4.19.2
|
2 |
-
transformers==4.32.0
|
|
|
1 |
+
gradio==4.19.2
|
|