Claude commited on
Commit
c206edd
·
unverified ·
1 Parent(s): 75383e4

ui: Center header with description and login button

Browse files

- Replace row layout with centered HTML header
- Add descriptive text explaining the app functionality
- Mention voice and text chat options
- Cleaner, more focused landing experience

Files changed (1) hide show
  1. app.py +15 -7
app.py CHANGED
@@ -832,13 +832,21 @@ def create_demo() -> gr.Blocks:
832
  # Per-session state for ChromaDB collection
833
  session_state = gr.State(value=None)
834
 
835
- gr.Markdown("# Video Analyzer")
836
-
837
- with gr.Row():
838
- with gr.Column(scale=4):
839
- gr.Markdown("*Analyze YouTube videos and chat about their content*")
840
- with gr.Column(scale=1):
841
- gr.LoginButton()
 
 
 
 
 
 
 
 
842
 
843
  chatbot = gr.Chatbot(
844
  label="Video Analyzer",
 
832
  # Per-session state for ChromaDB collection
833
  session_state = gr.State(value=None)
834
 
835
+ # Centered header with description
836
+ gr.HTML(
837
+ """
838
+ <div style="text-align: center; padding: 20px 0; max-width: 600px; margin: 0 auto;">
839
+ <h1 style="margin-bottom: 12px;">Video Analyzer</h1>
840
+ <p style="color: #666; margin-bottom: 16px; line-height: 1.5;">
841
+ Paste a YouTube URL to analyze the video. I'll transcribe the audio,
842
+ analyze key frames, and let you ask questions about the content.
843
+ You can type or use voice to chat!
844
+ </p>
845
+ </div>
846
+ """
847
+ )
848
+ with gr.Row(elem_classes="center-row"):
849
+ gr.LoginButton()
850
 
851
  chatbot = gr.Chatbot(
852
  label="Video Analyzer",