alexnasa commited on
Commit
f9ddeb1
·
verified ·
1 Parent(s): 9796867

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -152,14 +152,7 @@ def get_transcribe_state(segments):
152
 
153
  @spaces.GPU(duration=60)
154
  def transcribe(seed, audio_path):
155
- # first, create your aligner
156
- aligner = WhisperxAlignModel()
157
-
158
- # then load the ASR+alignment combo
159
- transcribe_model = WhisperxModel(
160
- model_name="large-v3-turbo", # or "base.en", "small.en", etc.
161
- align_model=aligner
162
- )
163
 
164
  if transcribe_model is None:
165
  raise gr.Error("Transcription model not loaded")
 
152
 
153
  @spaces.GPU(duration=60)
154
  def transcribe(seed, audio_path):
155
+ transcribe_model = WhisperModel("large-v3-turbo")
 
 
 
 
 
 
 
156
 
157
  if transcribe_model is None:
158
  raise gr.Error("Transcription model not loaded")