juancopi81 commited on
Commit
f8401ac
1 Parent(s): 089aaf1

Retrieve audio from inputs

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -52,7 +52,8 @@ def populate_metadata(link):
52
  audio = get_audio(link)
53
  return yt.thumbnail_url, yt.title, audio
54
 
55
- def inference(audio):
 
56
  with open(audio, "rb") as fd:
57
  contents = fd.read()
58
 
@@ -91,7 +92,7 @@ with demo:
91
  The mt3 model transcribes multiple simultaneous instruments, but without velocities.
92
  """
93
  model = gr.Radio(
94
- ["mt3", "ismir2021"],
95
  label=model_label,
96
  value="mt3"
97
  )
 
52
  audio = get_audio(link)
53
  return yt.thumbnail_url, yt.title, audio
54
 
55
+ def inference(inputs):
56
+ audio = inputs[0]
57
  with open(audio, "rb") as fd:
58
  contents = fd.read()
59
 
 
92
  The mt3 model transcribes multiple simultaneous instruments, but without velocities.
93
  """
94
  model = gr.Radio(
95
+ ["mt3",],
96
  label=model_label,
97
  value="mt3"
98
  )