Spaces:
Runtime error
Runtime error
CHANGES
Browse files
app.py
CHANGED
@@ -100,6 +100,9 @@ mf_transcribe = gr.Interface(
|
|
100 |
layout="horizontal",
|
101 |
theme="huggingface",
|
102 |
title="BHASHAVANI: Transcribe Audio 🎙️",
|
|
|
|
|
|
|
103 |
allow_flagging="never",
|
104 |
)
|
105 |
|
@@ -113,24 +116,30 @@ file_transcribe = gr.Interface(
|
|
113 |
layout="horizontal",
|
114 |
theme="huggingface",
|
115 |
title="BHASHAVANI: Transcribe Audio 🎧",
|
|
|
|
|
|
|
116 |
allow_flagging="never",
|
117 |
)
|
118 |
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
131 |
|
132 |
with demo:
|
133 |
-
gr.TabbedInterface([mf_transcribe, file_transcribe], ["Microphone", "Audio file"])
|
134 |
|
135 |
demo.launch(enable_queue=True)
|
136 |
|
|
|
100 |
layout="horizontal",
|
101 |
theme="huggingface",
|
102 |
title="BHASHAVANI: Transcribe Audio 🎙️",
|
103 |
+
description=(
|
104 |
+
"Transcribe long-form microphone or audio inputs with the click of a button! ."
|
105 |
+
),
|
106 |
allow_flagging="never",
|
107 |
)
|
108 |
|
|
|
116 |
layout="horizontal",
|
117 |
theme="huggingface",
|
118 |
title="BHASHAVANI: Transcribe Audio 🎧",
|
119 |
+
description=(
|
120 |
+
"Transcribe long-form microphone or audio inputs with the click of a button! 🤗 "
|
121 |
+
),
|
122 |
allow_flagging="never",
|
123 |
)
|
124 |
|
125 |
+
yt_transcribe = gr.Interface(
|
126 |
+
fn=yt_transcribe,
|
127 |
+
inputs=[
|
128 |
+
gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
129 |
+
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
|
130 |
+
],
|
131 |
+
outputs=["html", "text"],
|
132 |
+
layout="horizontal",
|
133 |
+
theme="huggingface",
|
134 |
+
title="BHASHAVANI: Transcribe YouTube",
|
135 |
+
description=(
|
136 |
+
"Transcribe long-form YouTube videos with the click of a button🤗 "
|
137 |
+
),
|
138 |
+
allow_flagging="never",
|
139 |
+
)
|
140 |
|
141 |
with demo:
|
142 |
+
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
|
143 |
|
144 |
demo.launch(enable_queue=True)
|
145 |
|