Spaces:
Configuration error
Configuration error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import numpy as np
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
def reverse_audio(audio):
|
5 |
+
sr, data = audio
|
6 |
+
return (sr, np.flipud(data))
|
7 |
+
|
8 |
+
mic = gr.inputs.Audio(source="microphone", type="numpy", label="Speak here...")
|
9 |
+
iface = gr.Interface(reverse_audio, mic, "audio", examples="audio")
|
10 |
+
iface.launch()
|