Spaces:
Runtime error
Runtime error
therealcyberlord
commited on
Commit
·
75a3c46
1
Parent(s):
6fd549f
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,9 @@ from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
|
|
4 |
import numpy as np
|
5 |
from pyannote.audio import Pipeline
|
6 |
import os
|
|
|
7 |
|
|
|
8 |
|
9 |
# Check and set device
|
10 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
|
4 |
import numpy as np
|
5 |
from pyannote.audio import Pipeline
|
6 |
import os
|
7 |
+
from dotenv import load_dotenv
|
8 |
|
9 |
+
load_dotenv()
|
10 |
|
11 |
# Check and set device
|
12 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|