Spaces:
Runtime error
Runtime error
alan
commited on
Commit
Β·
11d44ce
1
Parent(s):
1578762
ZeroGPU
Browse files
app.py
CHANGED
|
@@ -130,8 +130,8 @@ mf_transcribe = gr.Interface(
|
|
| 130 |
gr.Textbox(lines=1, placeholder="Prompt"),
|
| 131 |
],
|
| 132 |
outputs=["text", "text"],
|
| 133 |
-
layout="horizontal",
|
| 134 |
-
theme="huggingface",
|
| 135 |
title=f"Transcribe Audio with {os.path.basename(MODEL_NAME)}",
|
| 136 |
description=f"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the Kotoba-Whisper checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and π€ Transformers to transcribe audio files of arbitrary length.",
|
| 137 |
allow_flagging="never",
|
|
@@ -144,8 +144,8 @@ file_transcribe = gr.Interface(
|
|
| 144 |
gr.Textbox(lines=1, placeholder="Prompt"),
|
| 145 |
],
|
| 146 |
outputs=["text", "text"],
|
| 147 |
-
layout="horizontal",
|
| 148 |
-
theme="huggingface",
|
| 149 |
title=f"Transcribe Audio with {os.path.basename(MODEL_NAME)}",
|
| 150 |
description=f"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses Kotoba-Whisper checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and π€ Transformers to transcribe audio files of arbitrary length.",
|
| 151 |
allow_flagging="never",
|
|
@@ -157,8 +157,8 @@ yt_transcribe = gr.Interface(
|
|
| 157 |
gr.Textbox(lines=1, placeholder="Prompt"),
|
| 158 |
],
|
| 159 |
outputs=["html", "text", "text"],
|
| 160 |
-
layout="horizontal",
|
| 161 |
-
theme="huggingface",
|
| 162 |
title=f"Transcribe YouTube with {os.path.basename(MODEL_NAME)}",
|
| 163 |
description=f"Transcribe long-form YouTube videos with the click of a button! Demo uses Kotoba-Whisper checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and π€ Transformers to transcribe video files of arbitrary length.",
|
| 164 |
allow_flagging="never",
|
|
@@ -167,4 +167,4 @@ yt_transcribe = gr.Interface(
|
|
| 167 |
with demo:
|
| 168 |
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
|
| 169 |
|
| 170 |
-
demo.launch(
|
|
|
|
| 130 |
gr.Textbox(lines=1, placeholder="Prompt"),
|
| 131 |
],
|
| 132 |
outputs=["text", "text"],
|
| 133 |
+
# layout="horizontal",
|
| 134 |
+
# theme="huggingface",
|
| 135 |
title=f"Transcribe Audio with {os.path.basename(MODEL_NAME)}",
|
| 136 |
description=f"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the Kotoba-Whisper checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and π€ Transformers to transcribe audio files of arbitrary length.",
|
| 137 |
allow_flagging="never",
|
|
|
|
| 144 |
gr.Textbox(lines=1, placeholder="Prompt"),
|
| 145 |
],
|
| 146 |
outputs=["text", "text"],
|
| 147 |
+
# layout="horizontal",
|
| 148 |
+
# theme="huggingface",
|
| 149 |
title=f"Transcribe Audio with {os.path.basename(MODEL_NAME)}",
|
| 150 |
description=f"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses Kotoba-Whisper checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and π€ Transformers to transcribe audio files of arbitrary length.",
|
| 151 |
allow_flagging="never",
|
|
|
|
| 157 |
gr.Textbox(lines=1, placeholder="Prompt"),
|
| 158 |
],
|
| 159 |
outputs=["html", "text", "text"],
|
| 160 |
+
# layout="horizontal",
|
| 161 |
+
# theme="huggingface",
|
| 162 |
title=f"Transcribe YouTube with {os.path.basename(MODEL_NAME)}",
|
| 163 |
description=f"Transcribe long-form YouTube videos with the click of a button! Demo uses Kotoba-Whisper checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and π€ Transformers to transcribe video files of arbitrary length.",
|
| 164 |
allow_flagging="never",
|
|
|
|
| 167 |
with demo:
|
| 168 |
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
|
| 169 |
|
| 170 |
+
demo.launch()
|