wtlow003
commited on
Commit
•
5e68fac
1
Parent(s):
541a052
fix: description
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers.pipelines.audio_utils import ffmpeg_read
|
|
9 |
MODEL_NAME = "jensenlwt/whisper-small-singlish-122k"
|
10 |
FILE_LIMIT_MB = 1000
|
11 |
|
12 |
-
device = 0 if torch.cuda.is_available() else "cpu"
|
13 |
|
14 |
pipe = pipeline(
|
15 |
task="automatic-speech-recognition",
|
@@ -59,7 +59,9 @@ file_transcribe = gr.Interface(
|
|
59 |
layout="horizontal",
|
60 |
theme="huggingface",
|
61 |
title="Whisper Small: Singlish Edition 🇸🇬",
|
62 |
-
description=(
|
|
|
|
|
63 |
allow_flagging="never",
|
64 |
)
|
65 |
|
|
|
9 |
MODEL_NAME = "jensenlwt/whisper-small-singlish-122k"
|
10 |
FILE_LIMIT_MB = 1000
|
11 |
|
12 |
+
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
13 |
|
14 |
pipe = pipeline(
|
15 |
task="automatic-speech-recognition",
|
|
|
59 |
layout="horizontal",
|
60 |
theme="huggingface",
|
61 |
title="Whisper Small: Singlish Edition 🇸🇬",
|
62 |
+
description=(
|
63 |
+
"NOTE: Current space seems to cut off the last few seconds of the recording. For exploration, I would recommend sticking to audio <10s long."
|
64 |
+
),
|
65 |
allow_flagging="never",
|
66 |
)
|
67 |
|