amirgame197 commited on
Commit
45eeceb
·
verified ·
1 Parent(s): 3395103

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,7 +23,7 @@ async def detect(audio):
23
  return title + '\nby ' + subtitle + '\nin ' + url, background_image
24
  except:
25
  return 'No results found.', None
26
- title = "Music finder that uses Shazam"
27
- description = "Find the name and other useful informations of your audio file's Music using this Space! Remember if you have a video, you need to convert it to audio file in order to upload it here."
28
- iface = gr.Interface(fn=detect, title=title, description=description, inputs=[gr.Audio(type="filepath", label="Audio File")], outputs=[gr.Text(label="Info"), gr.Image(label="Cover")])
29
  iface.launch()
 
23
  return title + '\nby ' + subtitle + '\nin ' + url, background_image
24
  except:
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.Media(type=["audio", "video"]], outputs=[gr.Text(label="Info"), gr.Image(label="Cover")])
29
  iface.launch()