silaseic commited on
Commit
d24f1be
1 Parent(s): eb9378a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -2
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 inp
42
 
43
 
44
  def run():
 
 
45
  demo = gr.Interface(
46
  fn=predict,
47
  inputs='text',
48
- outputs='text',
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