Gijs Wijngaard
commited on
Commit
·
b6d8181
1
Parent(s):
b95f6f3
Add spaces
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import os
|
3 |
import re
|
4 |
import gradio as gr
|
@@ -73,7 +73,7 @@ def process_output(output):
|
|
73 |
return output
|
74 |
|
75 |
# Keep only the process_audio_streaming function that's actually used in the Gradio interface
|
76 |
-
|
77 |
def process_audio_streaming(audio_file, model_choice):
|
78 |
# Load the selected model
|
79 |
model_path = model_path_1 if model_choice == "Think" else model_path_2
|
|
|
1 |
+
import spaces
|
2 |
import os
|
3 |
import re
|
4 |
import gradio as gr
|
|
|
73 |
return output
|
74 |
|
75 |
# Keep only the process_audio_streaming function that's actually used in the Gradio interface
|
76 |
+
@spaces.GPU
|
77 |
def process_audio_streaming(audio_file, model_choice):
|
78 |
# Load the selected model
|
79 |
model_path = model_path_1 if model_choice == "Think" else model_path_2
|