Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
with gr.Blocks(theme="base") as demo:
|
6 |
gr.Markdown("<center><h1> π Transcribe Anything </h1></center>")
|
@@ -17,13 +18,19 @@ with gr.Blocks(theme="base") as demo:
|
|
17 |
elif s == "YouTube URL":
|
18 |
t = gr.Textbox(placeholder="https://www.youtube.com/watch?v=44vi31hehw4")
|
19 |
h = gr.HTML(label="Video preview")
|
20 |
-
t.change(convert_to_embed_url, t, h)
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
with gr.Column():
|
23 |
gr.Dropdown(label="Languages", choices=["(Autodetect)", "English"], value="(Autodetect)")
|
24 |
gr.CheckboxGroup(label="Cleanup Transcript with LLM", choices=["Remove typos", "Separate into paragraphs"])
|
25 |
gr.Checkbox(label="Diarize Speakers (coming soon)", interactive=False)
|
26 |
transcribe_btn = gr.Button("Transcribe!")
|
|
|
27 |
|
28 |
with gr.Tab("Result"):
|
29 |
pass
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
import utils
|
4 |
+
import transcribe
|
5 |
|
6 |
with gr.Blocks(theme="base") as demo:
|
7 |
gr.Markdown("<center><h1> π Transcribe Anything </h1></center>")
|
|
|
18 |
elif s == "YouTube URL":
|
19 |
t = gr.Textbox(placeholder="https://www.youtube.com/watch?v=44vi31hehw4")
|
20 |
h = gr.HTML(label="Video preview")
|
21 |
+
t.change(utils.convert_to_embed_url, t, h)
|
22 |
+
transcribe_btn.click(
|
23 |
+
transcribe.transcribe,
|
24 |
+
inputs=[
|
25 |
+
|
26 |
+
]
|
27 |
|
28 |
with gr.Column():
|
29 |
gr.Dropdown(label="Languages", choices=["(Autodetect)", "English"], value="(Autodetect)")
|
30 |
gr.CheckboxGroup(label="Cleanup Transcript with LLM", choices=["Remove typos", "Separate into paragraphs"])
|
31 |
gr.Checkbox(label="Diarize Speakers (coming soon)", interactive=False)
|
32 |
transcribe_btn = gr.Button("Transcribe!")
|
33 |
+
)
|
34 |
|
35 |
with gr.Tab("Result"):
|
36 |
pass
|