sasan commited on
Commit
9ab0127
·
1 Parent(s): 104d008

Refactor save_and_transcribe_run_model function for better code organization

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