Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,7 +80,8 @@ demo = gr.Blocks()
|
|
| 80 |
output_2 = gr.File(label="Download")
|
| 81 |
output_3 = gr.File(label="Download")
|
| 82 |
description = """This application displays transcribed text for given audio input <img src="https://i.ibb.co/J5DscKw/GVP-Womens.jpg" width=100px>"""
|
| 83 |
-
|
|
|
|
| 84 |
fn=transcribe,
|
| 85 |
inputs=[
|
| 86 |
gr.Audio(type="filepath", label="Record Audio"),
|
|
@@ -88,21 +89,22 @@ mf_transcribe = gr.Interface(
|
|
| 88 |
|
| 89 |
],
|
| 90 |
outputs=["text",output_2],
|
| 91 |
-
|
| 92 |
theme="huggingface",
|
| 93 |
title="Speech to Text Converter using OpenAI Whisper Model",
|
| 94 |
description= description,
|
| 95 |
allow_flagging="never",
|
| 96 |
-
)
|
| 97 |
|
| 98 |
-
|
|
|
|
| 99 |
fn=yt_transcribe,
|
| 100 |
inputs=[
|
| 101 |
gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
| 102 |
|
| 103 |
],
|
| 104 |
outputs=["text",output_3],
|
| 105 |
-
|
| 106 |
theme="huggingface",
|
| 107 |
title="Speech to Text Converter using OpenAI Whisper Model",
|
| 108 |
description=(
|
|
|
|
| 80 |
output_2 = gr.File(label="Download")
|
| 81 |
output_3 = gr.File(label="Download")
|
| 82 |
description = """This application displays transcribed text for given audio input <img src="https://i.ibb.co/J5DscKw/GVP-Womens.jpg" width=100px>"""
|
| 83 |
+
with gr.Blocks() as mf_transcribe:
|
| 84 |
+
gr.Row(
|
| 85 |
fn=transcribe,
|
| 86 |
inputs=[
|
| 87 |
gr.Audio(type="filepath", label="Record Audio"),
|
|
|
|
| 89 |
|
| 90 |
],
|
| 91 |
outputs=["text",output_2],
|
| 92 |
+
|
| 93 |
theme="huggingface",
|
| 94 |
title="Speech to Text Converter using OpenAI Whisper Model",
|
| 95 |
description= description,
|
| 96 |
allow_flagging="never",
|
| 97 |
+
)
|
| 98 |
|
| 99 |
+
with gr.Blocks() as yt_transcribe:
|
| 100 |
+
gr.Row(
|
| 101 |
fn=yt_transcribe,
|
| 102 |
inputs=[
|
| 103 |
gr.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
| 104 |
|
| 105 |
],
|
| 106 |
outputs=["text",output_3],
|
| 107 |
+
|
| 108 |
theme="huggingface",
|
| 109 |
title="Speech to Text Converter using OpenAI Whisper Model",
|
| 110 |
description=(
|