Update handler.py
Browse files- handler.py +5 -4
handler.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
-
from typing import
|
2 |
from transformers import WhisperProcessor, WhisperForConditionalGeneration
|
3 |
-
from transformers.pipelines.
|
4 |
-
|
5 |
-
import
|
|
|
6 |
|
7 |
SAMPLE_RATE = 16000
|
8 |
|
|
|
1 |
+
from typing import Dict
|
2 |
from transformers import WhisperProcessor, WhisperForConditionalGeneration
|
3 |
+
from transformers.pipelines.audio_utils import ffmpeg_read
|
4 |
+
import Torch
|
5 |
+
#from datasets import load_dataset
|
6 |
+
|
7 |
|
8 |
SAMPLE_RATE = 16000
|
9 |
|