Upload folder using huggingface_hub
Browse files
test.py
CHANGED
@@ -7,7 +7,6 @@ def reverse_audio(audio):
|
|
7 |
|
8 |
with gr.Blocks(title="Mic Test") as demo:
|
9 |
src = "https://onj.me/shorts/audio/02-Who%27s%20the%20bossa%21.mp3"
|
10 |
-
gr.HTML(f"<audio src='{src}'></audio>", visible=True)
|
11 |
|
12 |
mic = gr.Audio(
|
13 |
sources=["microphone"],
|
@@ -18,6 +17,8 @@ with gr.Blocks(title="Mic Test") as demo:
|
|
18 |
show_controls=False,
|
19 |
),
|
20 |
)
|
|
|
|
|
21 |
mic.stop_recording(
|
22 |
fn=reverse_audio,
|
23 |
inputs=mic,
|
|
|
7 |
|
8 |
with gr.Blocks(title="Mic Test") as demo:
|
9 |
src = "https://onj.me/shorts/audio/02-Who%27s%20the%20bossa%21.mp3"
|
|
|
10 |
|
11 |
mic = gr.Audio(
|
12 |
sources=["microphone"],
|
|
|
17 |
show_controls=False,
|
18 |
),
|
19 |
)
|
20 |
+
gr.HTML(f"<audio src='{src}' controls></audio>", visible=True)
|
21 |
+
|
22 |
mic.stop_recording(
|
23 |
fn=reverse_audio,
|
24 |
inputs=mic,
|