bhavyagiri commited on
Commit
81a893e
1 Parent(s): d852dec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -49,24 +49,24 @@ def get_answer(query,context):
49
 
50
  with gr.Blocks() as demo:
51
  gr.Markdown("<h1><center>Youtube-QA</center></h1>")
52
- gr.Markdown("<h3>Ask questions from your youtube video of choice</h3>")
53
- gr.Markdown("""mermaid
54
- graph LR
55
  A[Youtube-audio] -->B(openai-whisper)
56
  B -->C(Trascription)
57
  C -->|Query| D(QA-model)
58
  D -->E[Answer]
59
  """)
60
- with gr.Column():
61
- in_yt = gr.inputs.Textbox(lines=1, placeholder="Enter Youtube URL", label="YouTube URL")
62
- transcribe_btn = gr.Button("Trascribe")
63
- with gr.Column():
64
- out_yt_html = gr.outputs.HTML()
65
- out_yt_text = gr.Textbox()
66
- with gr.Column():
67
- in_query = gr.Textbox(lines=1, placeholder="What's your Question", label="Query")
68
- ans_btn = gr.Button("Answer")
69
- out_query = gr.outputs.Textbox()
 
70
 
71
 
72
  transcribe_btn.click(fn=yt_transcribe, inputs=in_yt, outputs=[out_yt_html,out_yt_text])
 
49
 
50
  with gr.Blocks() as demo:
51
  gr.Markdown("<h1><center>Youtube-QA</center></h1>")
52
+ gr.Markdown("<h3>Ask questions from your youtube video of choice, it takes sometime to run so grabbing a coffee is a good option ☕️</h3>")
53
+ gr.Markdown("""
 
54
  A[Youtube-audio] -->B(openai-whisper)
55
  B -->C(Trascription)
56
  C -->|Query| D(QA-model)
57
  D -->E[Answer]
58
  """)
59
+ with gr.Row():
60
+ with gr.Column():
61
+ in_yt = gr.inputs.Textbox(lines=1, placeholder="Enter Youtube URL", label="YouTube URL")
62
+ transcribe_btn = gr.Button("Trascribe")
63
+ with gr.Column():
64
+ out_yt_html = gr.outputs.HTML()
65
+ out_yt_text = gr.Textbox()
66
+ with gr.Column():
67
+ in_query = gr.Textbox(lines=1, placeholder="What's your Question", label="Query")
68
+ ans_btn = gr.Button("Answer")
69
+ out_query = gr.outputs.Textbox()
70
 
71
 
72
  transcribe_btn.click(fn=yt_transcribe, inputs=in_yt, outputs=[out_yt_html,out_yt_text])