Upload folder using huggingface_hub
Browse files
test.py
CHANGED
|
@@ -8,7 +8,6 @@ def reverse_audio(audio):
|
|
| 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}' autoplay controls></audio>", visible=True)
|
| 11 |
-
'''
|
| 12 |
mic = gr.Audio(
|
| 13 |
sources=["microphone"],
|
| 14 |
waveform_options=gr.WaveformOptions(
|
|
@@ -24,6 +23,5 @@ with gr.Blocks(title="Mic Test") as demo:
|
|
| 24 |
inputs=mic,
|
| 25 |
outputs=gr.Audio()
|
| 26 |
)
|
| 27 |
-
'''
|
| 28 |
demo.launch()
|
| 29 |
|
|
|
|
| 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}' autoplay controls></audio>", visible=True)
|
|
|
|
| 11 |
mic = gr.Audio(
|
| 12 |
sources=["microphone"],
|
| 13 |
waveform_options=gr.WaveformOptions(
|
|
|
|
| 23 |
inputs=mic,
|
| 24 |
outputs=gr.Audio()
|
| 25 |
)
|
|
|
|
| 26 |
demo.launch()
|
| 27 |
|