Spaces:
Sleeping
Sleeping
bhavyagiri
commited on
Commit
·
de3f5ef
1
Parent(s):
1bbfa19
Update app.py
Browse files
app.py
CHANGED
@@ -50,17 +50,22 @@ with gr.Blocks() as demo:
|
|
50 |
with gr.Column():
|
51 |
with gr.Row():
|
52 |
in_yt = gr.Textbox(lines=1, placeholder="Enter Youtube URL", label="YouTube URL")
|
53 |
-
|
|
|
54 |
with gr.Column():
|
55 |
with gr.Row():
|
56 |
-
|
|
|
|
|
57 |
with gr.Column():
|
58 |
with gr.Row():
|
59 |
in_query = gr.Textbox(lines=1, placeholder="What's your Question", label="Query")
|
|
|
60 |
ans_btn = gr.Button("Answer")
|
|
|
61 |
out_query = ["text"]
|
62 |
|
63 |
-
ans_btn.click(fn=get_answer, inputs=[in_query,
|
64 |
-
transcribe_btn.click(fn=yt_transcribe, inputs=in_yt, outputs=
|
65 |
|
66 |
demo.launch()
|
|
|
50 |
with gr.Column():
|
51 |
with gr.Row():
|
52 |
in_yt = gr.Textbox(lines=1, placeholder="Enter Youtube URL", label="YouTube URL")
|
53 |
+
with gr.Row():
|
54 |
+
transcribe_btn = gr.Button("Trascribe")
|
55 |
with gr.Column():
|
56 |
with gr.Row():
|
57 |
+
out_yt_html = "html"
|
58 |
+
with gr.Row():
|
59 |
+
out_yt_text = "text"
|
60 |
with gr.Column():
|
61 |
with gr.Row():
|
62 |
in_query = gr.Textbox(lines=1, placeholder="What's your Question", label="Query")
|
63 |
+
with gr.Row():
|
64 |
ans_btn = gr.Button("Answer")
|
65 |
+
with gr.Row():
|
66 |
out_query = ["text"]
|
67 |
|
68 |
+
ans_btn.click(fn=get_answer, inputs=[in_query,out_yt_text, outputs=out_query)
|
69 |
+
transcribe_btn.click(fn=yt_transcribe, inputs=in_yt, outputs=[out_yt_html,out_yt_text])
|
70 |
|
71 |
demo.launch()
|