Spaces:
Running
Running
pipe device
Browse files
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")
|