Gijs Wijngaard commited on
Commit
d1d89ce
·
1 Parent(s): f754b4d

Add spaces

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import os
2
  import re
3
  import gradio as gr
@@ -54,7 +55,9 @@ def extract_components(text):
54
 
55
  return thinking, semantic, answer
56
 
57
- # Function to process audio and return components
 
 
58
  def process_audio(audio_file):
59
  # Load and process the audio
60
  sampling_rate = processor.feature_extractor.sampling_rate
 
1
+ import spaces
2
  import os
3
  import re
4
  import gradio as gr
 
55
 
56
  return thinking, semantic, answer
57
 
58
+
59
+
60
+ @spaces.GPU
61
  def process_audio(audio_file):
62
  # Load and process the audio
63
  sampling_rate = processor.feature_extractor.sampling_rate