Spaces:
Runtime error
Runtime error
Upgrade to finetuned large-v2 checkpoint
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import pytube as pt
|
|
| 5 |
from transformers import pipeline
|
| 6 |
from huggingface_hub import model_info
|
| 7 |
|
| 8 |
-
MODEL_NAME = "mikr/whisper-
|
| 9 |
lang = "cs"
|
| 10 |
|
| 11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
|
@@ -71,8 +71,7 @@ mf_transcribe = gr.Interface(
|
|
| 71 |
description=(
|
| 72 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the fine-tuned"
|
| 73 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) from Whisper Fine Tuning Sprint Event 2022 "
|
| 74 |
-
"and 🤗 Transformers to transcribe audio files of arbitrary length.
|
| 75 |
-
"and training took crazy 42 hours."
|
| 76 |
),
|
| 77 |
allow_flagging="never",
|
| 78 |
)
|
|
|
|
| 5 |
from transformers import pipeline
|
| 6 |
from huggingface_hub import model_info
|
| 7 |
|
| 8 |
+
MODEL_NAME = "mikr/whisper-large2-czech-cv11" #this always needs to stay in line 8 :D sorry for the hackiness
|
| 9 |
lang = "cs"
|
| 10 |
|
| 11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
|
|
|
| 71 |
description=(
|
| 72 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the fine-tuned"
|
| 73 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) from Whisper Fine Tuning Sprint Event 2022 "
|
| 74 |
+
"and 🤗 Transformers to transcribe audio files of arbitrary length."
|
|
|
|
| 75 |
),
|
| 76 |
allow_flagging="never",
|
| 77 |
)
|