Update app.py
Browse files
app.py
CHANGED
@@ -50,9 +50,9 @@ button { background-color: #FFFF3 !important; color: black !important; border: n
|
|
50 |
input, textarea, .gr-textbox, .gr-video { background-color: #111 !important; color: #FFFF33 !important; border-color: #FFFF33 !important; }
|
51 |
""") as iface:
|
52 |
gr.HTML("<h1 style='color:#FFFF33'>π₯ Video Transcriber, Summarizer & Q&A Tool</h1>")
|
53 |
-
gr.HTML("<p style='color:#
|
54 |
|
55 |
-
with gr.Tab("
|
56 |
video_input = gr.Video(label="Upload Video (.mp4)", interactive=True)
|
57 |
transcribe_btn = gr.Button("π Transcribe and Summarize")
|
58 |
transcribed_text = gr.Textbox(label="Transcribed Text", lines=8, interactive=False)
|
@@ -60,7 +60,7 @@ input, textarea, .gr-textbox, .gr-video { background-color: #111 !important; col
|
|
60 |
|
61 |
transcribe_btn.click(fn=transcribe_and_summarize, inputs=video_input, outputs=[transcribed_text, summarized_text])
|
62 |
|
63 |
-
with gr.Tab("
|
64 |
question_input = gr.Textbox(label="Ask a question based on the transcript", placeholder="E.g., What is the main topic?")
|
65 |
ask_btn = gr.Button("π Get Answer")
|
66 |
answer_output = gr.Textbox(label="Answer", interactive=False)
|
|
|
50 |
input, textarea, .gr-textbox, .gr-video { background-color: #111 !important; color: #FFFF33 !important; border-color: #FFFF33 !important; }
|
51 |
""") as iface:
|
52 |
gr.HTML("<h1 style='color:#FFFF33'>π₯ Video Transcriber, Summarizer & Q&A Tool</h1>")
|
53 |
+
gr.HTML("<p style='color:#FFFF33'>Upload a video to get a transcript, summary, and ask questions about its content.</p>")
|
54 |
|
55 |
+
with gr.Tab("π Transcription & Summary"):
|
56 |
video_input = gr.Video(label="Upload Video (.mp4)", interactive=True)
|
57 |
transcribe_btn = gr.Button("π Transcribe and Summarize")
|
58 |
transcribed_text = gr.Textbox(label="Transcribed Text", lines=8, interactive=False)
|
|
|
60 |
|
61 |
transcribe_btn.click(fn=transcribe_and_summarize, inputs=video_input, outputs=[transcribed_text, summarized_text])
|
62 |
|
63 |
+
with gr.Tab("β Ask Questions"):
|
64 |
question_input = gr.Textbox(label="Ask a question based on the transcript", placeholder="E.g., What is the main topic?")
|
65 |
ask_btn = gr.Button("π Get Answer")
|
66 |
answer_output = gr.Textbox(label="Answer", interactive=False)
|