Spaces:
Sleeping
Sleeping
Update run.py
Browse files
run.py
CHANGED
@@ -1,18 +1,16 @@
|
|
1 |
-
import gradio as gr
|
2 |
import os
|
|
|
|
|
3 |
|
4 |
|
5 |
-
def
|
6 |
-
|
7 |
-
|
8 |
|
9 |
-
cheetah = "lion.jpg"
|
10 |
|
11 |
-
demo = gr.Interface(
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
])
|
16 |
|
17 |
-
|
18 |
-
demo.launch()
|
|
|
|
|
1 |
import os
|
2 |
+
import numpy as np
|
3 |
+
import gradio as gr
|
4 |
|
5 |
|
6 |
+
def reverse_audio(audio):
|
7 |
+
sr, data = audio
|
8 |
+
return (sr, np.flipud(data))
|
9 |
|
|
|
10 |
|
11 |
+
demo = gr.Interface(fn=reverse_audio,
|
12 |
+
inputs="microphone",
|
13 |
+
outputs="audio",
|
14 |
+
)
|
|
|
15 |
|
16 |
+
demo.launch()
|
|