Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,14 +3,7 @@ import subprocess
|
|
3 |
import os
|
4 |
|
5 |
def recognize_music(pdf_file):
|
6 |
-
|
7 |
-
|
8 |
-
Args:
|
9 |
-
pdf_file: the file with the PDF file
|
10 |
-
|
11 |
-
Returns:
|
12 |
-
the path were the MusicXML file is generated
|
13 |
-
"""
|
14 |
audiveris = "/opt/audiveris/bin/Audiveris"
|
15 |
output_dir = "/tmp/output"
|
16 |
pdf_file_path = pdf_file.name
|
@@ -34,5 +27,5 @@ audiveris = gr.Interface(
|
|
34 |
outputs=gr.File(label="Download MusicXML file"),
|
35 |
description="Upload a PDF music socre and create a MusicXML file from it.",
|
36 |
)
|
37 |
-
audiveris.launch(
|
38 |
|
|
|
3 |
import os
|
4 |
|
5 |
def recognize_music(pdf_file):
|
6 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
audiveris = "/opt/audiveris/bin/Audiveris"
|
8 |
output_dir = "/tmp/output"
|
9 |
pdf_file_path = pdf_file.name
|
|
|
27 |
outputs=gr.File(label="Download MusicXML file"),
|
28 |
description="Upload a PDF music socre and create a MusicXML file from it.",
|
29 |
)
|
30 |
+
audiveris.launch()
|
31 |
|