Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -174,7 +174,6 @@ body.dark #header-container * {
|
|
| 174 |
}
|
| 175 |
"""
|
| 176 |
|
| 177 |
-
# FIXED: Removed 'css' and 'theme' from Blocks constructor
|
| 178 |
with gr.Blocks() as demo:
|
| 179 |
|
| 180 |
# 1. Header Section
|
|
@@ -194,7 +193,6 @@ with gr.Blocks() as demo:
|
|
| 194 |
# 2. Workspace Layout
|
| 195 |
with gr.Row():
|
| 196 |
with gr.Column(scale=2):
|
| 197 |
-
# FIXED: Removed 'type="messages"' parameter
|
| 198 |
chatbot = gr.Chatbot(
|
| 199 |
label="Lane AI Support Stream",
|
| 200 |
value=[{"role": "assistant", "content": "Hello! I'm Lane, your FAQ Support Agent. How can I assist you with your platform infrastructure today?"}]
|
|
@@ -213,7 +211,8 @@ with gr.Blocks() as demo:
|
|
| 213 |
suggest_btn2 = gr.Button("How do I unlock my completion certificate?")
|
| 214 |
|
| 215 |
with gr.Column(scale=1):
|
| 216 |
-
|
|
|
|
| 217 |
gr.HTML(
|
| 218 |
"""
|
| 219 |
<div style='display: flex; justify-content: center; margin-bottom: 12px;'>
|
|
@@ -267,5 +266,4 @@ with gr.Blocks() as demo:
|
|
| 267 |
)
|
| 268 |
|
| 269 |
if __name__ == "__main__":
|
| 270 |
-
# FIXED: Passed 'css' and 'theme' parameter explicitly to launch()
|
| 271 |
demo.launch(css=custom_css, theme=gr.themes.Default())
|
|
|
|
| 174 |
}
|
| 175 |
"""
|
| 176 |
|
|
|
|
| 177 |
with gr.Blocks() as demo:
|
| 178 |
|
| 179 |
# 1. Header Section
|
|
|
|
| 193 |
# 2. Workspace Layout
|
| 194 |
with gr.Row():
|
| 195 |
with gr.Column(scale=2):
|
|
|
|
| 196 |
chatbot = gr.Chatbot(
|
| 197 |
label="Lane AI Support Stream",
|
| 198 |
value=[{"role": "assistant", "content": "Hello! I'm Lane, your FAQ Support Agent. How can I assist you with your platform infrastructure today?"}]
|
|
|
|
| 211 |
suggest_btn2 = gr.Button("How do I unlock my completion certificate?")
|
| 212 |
|
| 213 |
with gr.Column(scale=1):
|
| 214 |
+
# FIXED: Changed gr.Card to gr.Group
|
| 215 |
+
with gr.Group(elem_id="right-meta-card"):
|
| 216 |
gr.HTML(
|
| 217 |
"""
|
| 218 |
<div style='display: flex; justify-content: center; margin-bottom: 12px;'>
|
|
|
|
| 266 |
)
|
| 267 |
|
| 268 |
if __name__ == "__main__":
|
|
|
|
| 269 |
demo.launch(css=custom_css, theme=gr.themes.Default())
|