dtkne commited on
Commit
32c6718
Β·
verified Β·
1 Parent(s): 6e84b45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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:#000000'>Upload a video to get a transcript, summary, and ask questions about its content.</p>")
54
 
55
- with gr.Tab("<p style='color:#FFFF33'>πŸ“ 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,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("<p style='color:#FFFF33'>❓ 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)
 
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)