Spaces:
Sleeping
Sleeping
bofenghuang
commited on
Commit
·
b0ce034
1
Parent(s):
275cf39
updt model
Browse files
app.py
CHANGED
@@ -5,8 +5,9 @@ import pytube as pt
|
|
5 |
from transformers import pipeline
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
-
MODEL_NAME = "openai/whisper-small"
|
9 |
-
|
|
|
10 |
|
11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
12 |
pipe = pipeline(
|
|
|
5 |
from transformers import pipeline
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
+
# MODEL_NAME = "openai/whisper-small"
|
9 |
+
MODEL_NAME = "bhuang/whisper-medium-cv11-french-case-punctuation"
|
10 |
+
lang = "fr"
|
11 |
|
12 |
device = 0 if torch.cuda.is_available() else "cpu"
|
13 |
pipe = pipeline(
|