Spaces:
Build error
Build error
Update main.py
Browse files
main.py
CHANGED
@@ -38,14 +38,16 @@ def convert_to_key():
|
|
38 |
return f'{file_name}.musicxml', f'{file_name}_teaser.png'
|
39 |
|
40 |
def predict(inp):
|
41 |
-
return
|
42 |
|
43 |
|
44 |
def run():
|
|
|
|
|
45 |
demo = gr.Interface(
|
46 |
fn=predict,
|
47 |
inputs='text',
|
48 |
-
outputs=
|
49 |
allow_flagging='never',
|
50 |
)
|
51 |
|
|
|
38 |
return f'{file_name}.musicxml', f'{file_name}_teaser.png'
|
39 |
|
40 |
def predict(inp):
|
41 |
+
return convert_to_key()
|
42 |
|
43 |
|
44 |
def run():
|
45 |
+
outputs = [gr.File(label='Download musicxml', type='file'),
|
46 |
+
gr.File(label='Download detection image', type='file')]
|
47 |
demo = gr.Interface(
|
48 |
fn=predict,
|
49 |
inputs='text',
|
50 |
+
outputs=outputs,
|
51 |
allow_flagging='never',
|
52 |
)
|
53 |
|