agent404 commited on
Commit
635465d
·
1 Parent(s): 07b038f

update app

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 svg_file, audio_file
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], capture_output=True, text=True)
38
+ # subprocess.run(["musescore","-o", audio_file, tmp_midi])
39
+ return svg_file, None
40
  else:
41
  return None, None
42