Update demo.py
Browse files
demo.py
CHANGED
|
@@ -29,7 +29,7 @@ with gr.Blocks(title="🔊",theme=gr.themes.Base(primary_hue="blue",neutral_hue=
|
|
| 29 |
with gr.Row():
|
| 30 |
dropbox = gr.Audio(label="Drop your audio here & hit the Reload button.")
|
| 31 |
with gr.Row():
|
| 32 |
-
record_button=gr.Audio(
|
| 33 |
with gr.Row():
|
| 34 |
paths_for_files = lambda path:[os.path.abspath(os.path.join(path, f)) for f in os.listdir(path) if os.path.splitext(f)[1].lower() in ('.mp3', '.wav', '.flac', '.ogg')]
|
| 35 |
input_audio0 = gr.Dropdown(
|
|
|
|
| 29 |
with gr.Row():
|
| 30 |
dropbox = gr.Audio(label="Drop your audio here & hit the Reload button.")
|
| 31 |
with gr.Row():
|
| 32 |
+
record_button=gr.Audio(sources="microphone", label="OR Record audio.", type="filepath")
|
| 33 |
with gr.Row():
|
| 34 |
paths_for_files = lambda path:[os.path.abspath(os.path.join(path, f)) for f in os.listdir(path) if os.path.splitext(f)[1].lower() in ('.mp3', '.wav', '.flac', '.ogg')]
|
| 35 |
input_audio0 = gr.Dropdown(
|