Refactor save_and_transcribe_run_model function for better code organization
Browse files
space.py
CHANGED
@@ -181,6 +181,7 @@ def update_vehicle_status(trip_progress, origin, destination, state):
|
|
181 |
return vehicle, plot, state
|
182 |
|
183 |
|
|
|
184 |
def save_and_transcribe_run_model(audio, voice_character, state):
|
185 |
text = transcribe_audio(audio)
|
186 |
out_text, out_voice, vehicle_status, state, update_proxy = run_model(
|
|
|
181 |
return vehicle, plot, state
|
182 |
|
183 |
|
184 |
+
@spaces.GPU
|
185 |
def save_and_transcribe_run_model(audio, voice_character, state):
|
186 |
text = transcribe_audio(audio)
|
187 |
out_text, out_voice, vehicle_status, state, update_proxy = run_model(
|