Spaces:
Running
on
Zero
Running
on
Zero
fix
Browse files
app.py
CHANGED
@@ -70,9 +70,10 @@ def transcribe(inputs: str, task: str, language: str):
|
|
70 |
|
71 |
|
72 |
demo = gr.Blocks()
|
73 |
-
description = (f"Kotoba-whisper-bilingual is speech transcribe and translation model for English and
|
74 |
-
f"[{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to
|
75 |
-
f" files of arbitrary length. Make sure to choose the desired language of the
|
|
|
76 |
title = f"Transcribe/translate Japanese & English Audio with Kotoba-Whisper-Bilingual"
|
77 |
mf_transcribe = gr.Interface(
|
78 |
fn=transcribe,
|
@@ -93,7 +94,8 @@ file_transcribe = gr.Interface(
|
|
93 |
gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
|
94 |
gr.Radio(["ja", "en"], label="Output Language", value="ja")
|
95 |
],
|
96 |
-
outputs=["text", "text"],
|
|
|
97 |
title=title,
|
98 |
description=description,
|
99 |
allow_flagging="never",
|
|
|
70 |
|
71 |
|
72 |
demo = gr.Blocks()
|
73 |
+
description = (f"Kotoba-whisper-bilingual is end-to-end speech transcribe and translation model for English and "
|
74 |
+
f"Japanese! Demo uses [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to "
|
75 |
+
f"transcribe/translate audio files of arbitrary length. Make sure to choose the desired language of the"
|
76 |
+
f" transcription from the tab.")
|
77 |
title = f"Transcribe/translate Japanese & English Audio with Kotoba-Whisper-Bilingual"
|
78 |
mf_transcribe = gr.Interface(
|
79 |
fn=transcribe,
|
|
|
94 |
gr.Radio(["transcribe", "translate"], label="Task", value="transcribe"),
|
95 |
gr.Radio(["ja", "en"], label="Output Language", value="ja")
|
96 |
],
|
97 |
+
# outputs=["text", "text"],
|
98 |
+
outputs=[gr.Textbox(label="Text"), gr.Textbox(label="Text (with timestamp)")],
|
99 |
title=title,
|
100 |
description=description,
|
101 |
allow_flagging="never",
|