Update handler.py
Browse files- handler.py +1 -0
handler.py
CHANGED
@@ -2,6 +2,7 @@ import torch
|
|
2 |
from typing import Dict
|
3 |
from transformers import pipeline
|
4 |
from datasets import load_dataset
|
|
|
5 |
|
6 |
SAMPLE_RATE=16000
|
7 |
class EndpointHandler():
|
|
|
2 |
from typing import Dict
|
3 |
from transformers import pipeline
|
4 |
from datasets import load_dataset
|
5 |
+
from transformers.pipelines.audio_utils import ffmpeg_read
|
6 |
|
7 |
SAMPLE_RATE=16000
|
8 |
class EndpointHandler():
|