soiz1 commited on
Commit
7f7d4a7
·
verified ·
1 Parent(s): 37c2008

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -3,14 +3,7 @@ import subprocess
3
  import os
4
 
5
  def recognize_music(pdf_file):
6
- """Converts a PDF file to a Music score
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(server_name="0.0.0.0")
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