amirgame197 commited on
Commit
d809119
·
verified ·
1 Parent(s): 6c195c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,5 +25,5 @@ async def detect(audio):
25
  return 'No results found.', None
26
  title = "Music finder using Shazam"
27
  description = "Find the name and other useful informations of your audio file's Music using this Space!"
28
- iface = gr.Interface(fn=detect, title=title, description=description, inputs=[gr.components.Media(type=["audio", "video"])], outputs=[gr.Text(label="Info"), gr.Image(label="Cover")])
29
  iface.launch()
 
25
  return 'No results found.', None
26
  title = "Music finder using Shazam"
27
  description = "Find the name and other useful informations of your audio file's Music using this Space!"
28
+ iface = gr.Interface(fn=detect, title=title, description=description, inputs=[gr.File(label="Upload Audio or Video")], outputs=[gr.Text(label="Info"), gr.Image(label="Cover")])
29
  iface.launch()