Zeph27 commited on
Commit
262ec8a
1 Parent(s): 289fe38

pipe device

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -80,6 +80,7 @@ def transcribe(youtube_url, audio_file, whisper_model, gemini_api_key, gemini_pr
80
  chunk_length_s=30,
81
  device=device,
82
  )
 
83
 
84
  if youtube_url:
85
  progress(0.1, desc="Extracting YouTube ID")
 
80
  chunk_length_s=30,
81
  device=device,
82
  )
83
+ pipe.model = pipe.model.to(device)
84
 
85
  if youtube_url:
86
  progress(0.1, desc="Extracting YouTube ID")