Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -69,8 +69,8 @@ demo = gr.Blocks()
|
|
69 |
mf_transcribe = gr.Interface(
|
70 |
fn=transcribe,
|
71 |
inputs=[
|
72 |
-
gr.
|
73 |
-
gr.
|
74 |
],
|
75 |
outputs="text",
|
76 |
layout="horizontal",
|
@@ -86,7 +86,7 @@ mf_transcribe = gr.Interface(
|
|
86 |
|
87 |
yt_transcribe = gr.Interface(
|
88 |
fn=yt_transcribe,
|
89 |
-
inputs=[gr.
|
90 |
examples=[["https://www.youtube.com/watch?v=mukeSSa5GKo"]],
|
91 |
outputs=["html", "text"],
|
92 |
layout="horizontal",
|
@@ -103,4 +103,4 @@ yt_transcribe = gr.Interface(
|
|
103 |
with demo:
|
104 |
gr.TabbedInterface([mf_transcribe, yt_transcribe], ["Transcribe Audio", "Transcribe YouTube"])
|
105 |
|
106 |
-
demo.launch(
|
|
|
69 |
mf_transcribe = gr.Interface(
|
70 |
fn=transcribe,
|
71 |
inputs=[
|
72 |
+
gr.components.Audio(source="microphone", type="filepath", optional=True),
|
73 |
+
gr.components.Audio(source="upload", type="filepath", optional=True),
|
74 |
],
|
75 |
outputs="text",
|
76 |
layout="horizontal",
|
|
|
86 |
|
87 |
yt_transcribe = gr.Interface(
|
88 |
fn=yt_transcribe,
|
89 |
+
inputs=[gr.components.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL")],
|
90 |
examples=[["https://www.youtube.com/watch?v=mukeSSa5GKo"]],
|
91 |
outputs=["html", "text"],
|
92 |
layout="horizontal",
|
|
|
103 |
with demo:
|
104 |
gr.TabbedInterface([mf_transcribe, yt_transcribe], ["Transcribe Audio", "Transcribe YouTube"])
|
105 |
|
106 |
+
demo.launch(share=True).queue()
|