Spaces:
Runtime error
Runtime error
commit
Browse files
app.py
CHANGED
@@ -116,21 +116,21 @@ file_transcribe = gr.Interface(
|
|
116 |
allow_flagging="never",
|
117 |
)
|
118 |
|
119 |
-
yt_transcribe = gr.Interface(
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
)
|
131 |
|
132 |
with demo:
|
133 |
-
gr.TabbedInterface([mf_transcribe, file_transcribe
|
134 |
|
135 |
demo.launch(enable_queue=True)
|
136 |
|
|
|
116 |
allow_flagging="never",
|
117 |
)
|
118 |
|
119 |
+
# yt_transcribe = gr.Interface(
|
120 |
+
# fn=yt_transcribe,
|
121 |
+
# inputs=[
|
122 |
+
# gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
|
123 |
+
# gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
|
124 |
+
# ],
|
125 |
+
# outputs=["html", "text"],
|
126 |
+
# layout="horizontal",
|
127 |
+
# theme="huggingface",
|
128 |
+
# title="BHASHAVANI: Transcribe YouTube",
|
129 |
+
# allow_flagging="never",
|
130 |
+
# )
|
131 |
|
132 |
with demo:
|
133 |
+
gr.TabbedInterface([mf_transcribe, file_transcribe], ["Microphone", "Audio file"])
|
134 |
|
135 |
demo.launch(enable_queue=True)
|
136 |
|