Spaces:
Running
Running
Update app.py
Browse files
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"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"),
|