Spaces:
Running
on
Zero
Running
on
Zero
TheStinger
commited on
Commit
•
e9ecb03
1
Parent(s):
377786c
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import os
|
|
|
2 |
import gradio as gr
|
3 |
from scipy.io.wavfile import write
|
4 |
|
5 |
-
|
6 |
def inference(audio):
|
7 |
os.makedirs("out", exist_ok=True)
|
8 |
write('test.wav', audio[0], audio[1])
|
|
|
1 |
import os
|
2 |
+
import spaces
|
3 |
import gradio as gr
|
4 |
from scipy.io.wavfile import write
|
5 |
|
6 |
+
@spaces.GPU
|
7 |
def inference(audio):
|
8 |
os.makedirs("out", exist_ok=True)
|
9 |
write('test.wav', audio[0], audio[1])
|