Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ pipe.model.generation_config.forced_decoder_ids = None
|
|
| 18 |
|
| 19 |
def transcribe(inputs, task):
|
| 20 |
if inputs is None:
|
| 21 |
-
raise gr.Error("No audio file found.")
|
| 22 |
text = pipe(inputs, generate_kwargs={"task": task})
|
| 23 |
return text["text"]
|
| 24 |
|
|
@@ -29,8 +29,8 @@ iface = gr.Interface(
|
|
| 29 |
outputs="text",
|
| 30 |
theme="glass",
|
| 31 |
title="Whisper Small nan-tw model by self-training (閩南話/台語)",
|
| 32 |
-
description="Realtime demo for Minnan speech recognition using a
|
| 33 |
-
f"
|
| 34 |
allow_flagging="never",
|
| 35 |
)
|
| 36 |
|
|
|
|
| 18 |
|
| 19 |
def transcribe(inputs, task):
|
| 20 |
if inputs is None:
|
| 21 |
+
raise gr.Error("No audio file found or wait until audio input is ready.")
|
| 22 |
text = pipe(inputs, generate_kwargs={"task": task})
|
| 23 |
return text["text"]
|
| 24 |
|
|
|
|
| 29 |
outputs="text",
|
| 30 |
theme="glass",
|
| 31 |
title="Whisper Small nan-tw model by self-training (閩南話/台語)",
|
| 32 |
+
description="Realtime demo for Minnan speech recognition using a self-tuned Whisper small model."
|
| 33 |
+
f"\tCheckpoint: [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME})",
|
| 34 |
allow_flagging="never",
|
| 35 |
)
|
| 36 |
|