keivalya commited on
Commit
8ea45e7
·
verified ·
1 Parent(s): dcace2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -54,7 +54,15 @@ body {
54
 
55
  demo = gr.Interface(
56
  fn=analyze_song,
57
- inputs=gr.Audio(label="Record Audio", type="filepath", format="mp3"), # Record audio in MP3 format
 
 
 
 
 
 
 
 
58
  outputs=[
59
  gr.Textbox(label="Title"),
60
  gr.Textbox(label="Artist"),
 
54
 
55
  demo = gr.Interface(
56
  fn=analyze_song,
57
+ inputs=gr.Audio(label="Record Audio", type="filepath", format="mp3", sources=["upload", "microphone"],
58
+ waveform_options=gr.WaveformOptions(
59
+ waveform_color="#01C6FF",
60
+ waveform_progress_color="#0066B4",
61
+ skip_length=2,
62
+ show_controls=False,
63
+ ),
64
+ ), # Record audio in MP3 format
65
+
66
  outputs=[
67
  gr.Textbox(label="Title"),
68
  gr.Textbox(label="Artist"),