Spaces:
Runtime error
Runtime error
Claude commited on
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
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 |
-
|
| 836 |
-
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
|
| 841 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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",
|