Spaces:
Sleeping
Sleeping
trying to build
Browse files- Dockerfile +0 -1
- infer.py +0 -5
- whisper_online.py +0 -1
Dockerfile
CHANGED
@@ -19,7 +19,6 @@ RUN python3 -m pip install --upgrade pip
|
|
19 |
COPY requirements.txt .
|
20 |
RUN pip install -r requirements.txt
|
21 |
|
22 |
-
|
23 |
# Install the specific model using faster-whisper
|
24 |
RUN python3 -c 'import faster_whisper; m = faster_whisper.WhisperModel("ivrit-ai/faster-whisper-v2-d3-e3")'
|
25 |
|
|
|
19 |
COPY requirements.txt .
|
20 |
RUN pip install -r requirements.txt
|
21 |
|
|
|
22 |
# Install the specific model using faster-whisper
|
23 |
RUN python3 -c 'import faster_whisper; m = faster_whisper.WhisperModel("ivrit-ai/faster-whisper-v2-d3-e3")'
|
24 |
|
infer.py
CHANGED
@@ -9,12 +9,7 @@ import sys
|
|
9 |
import requests
|
10 |
|
11 |
import whisper_online
|
12 |
-
import os
|
13 |
|
14 |
-
hf_token = os.getenv("Token")
|
15 |
-
|
16 |
-
|
17 |
-
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s',
|
18 |
handlers=[logging.StreamHandler(sys.stdout)])
|
19 |
|
20 |
# Try to import the module
|
|
|
9 |
import requests
|
10 |
|
11 |
import whisper_online
|
|
|
12 |
|
|
|
|
|
|
|
|
|
13 |
handlers=[logging.StreamHandler(sys.stdout)])
|
14 |
|
15 |
# Try to import the module
|
whisper_online.py
CHANGED
@@ -34,7 +34,6 @@ class ASRBase:
|
|
34 |
|
35 |
# "" for faster-whisper because it emits the spaces when neeeded)
|
36 |
|
37 |
-
def __init__(self, lan, modelsize=None, cache_dir="/tmp", model_dir=None, logfile=sys.stderr):
|
38 |
self.logfile = logfile
|
39 |
|
40 |
self.transcribe_kargs = {}
|
|
|
34 |
|
35 |
# "" for faster-whisper because it emits the spaces when neeeded)
|
36 |
|
|
|
37 |
self.logfile = logfile
|
38 |
|
39 |
self.transcribe_kargs = {}
|