Spaces:
Running
on
Zero
Running
on
Zero
Update whisper.py
Browse files- whisper.py +1 -0
whisper.py
CHANGED
@@ -6,6 +6,7 @@ import torchaudio
|
|
6 |
import torch
|
7 |
import re
|
8 |
from transformers import pipeline
|
|
|
9 |
|
10 |
|
11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
|
|
6 |
import torch
|
7 |
import re
|
8 |
from transformers import pipeline
|
9 |
+
import spaces
|
10 |
|
11 |
|
12 |
device = 0 if torch.cuda.is_available() else "cpu"
|