Spaces:
Running
on
Zero
Running
on
Zero
prepared for Zero GPU
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
import glob
|
4 |
import os
|
5 |
import shutil
|
@@ -103,7 +103,7 @@ def concatenate_audio(output_filename="final_output.wav"):
|
|
103 |
|
104 |
return temp_wav_files[0], temp_wav_files # Returning temp paths
|
105 |
|
106 |
-
|
107 |
def infer(audio_input_path):
|
108 |
|
109 |
cleanup_old_audio()
|
|
|
1 |
import gradio as gr
|
2 |
+
import spaces
|
3 |
import glob
|
4 |
import os
|
5 |
import shutil
|
|
|
103 |
|
104 |
return temp_wav_files[0], temp_wav_files # Returning temp paths
|
105 |
|
106 |
+
@spaces.GPU()
|
107 |
def infer(audio_input_path):
|
108 |
|
109 |
cleanup_old_audio()
|