fffiloni commited on
Commit
bcc4dc9
·
verified ·
1 Parent(s): 67046af

prepared for Zero GPU

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()