Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -287,11 +287,7 @@ function toggleToolDetails(id) {
|
|
| 287 |
yield f"❌ Error: {error_detail}\n\n{traceback.format_exc()[:500]}"
|
| 288 |
|
| 289 |
# ========== Gradio 界面 ==========
|
| 290 |
-
with gr.Blocks(title="Financial & Market AI Assistant"
|
| 291 |
-
.contain { max-width: 100% !important; padding: 0 !important; }
|
| 292 |
-
#component-0 { height: 100vh !important; }
|
| 293 |
-
.chatbot { height: calc(100vh - 150px) !important; }
|
| 294 |
-
""") as demo:
|
| 295 |
gr.Markdown("# 🤖 Financial & Market AI Assistant")
|
| 296 |
|
| 297 |
chat = gr.ChatInterface(
|
|
@@ -303,7 +299,7 @@ with gr.Blocks(title="Financial & Market AI Assistant", css="""
|
|
| 303 |
"Get the latest market news about crypto",
|
| 304 |
"Compare Microsoft's latest earnings with its current stock price",
|
| 305 |
],
|
| 306 |
-
chatbot=gr.Chatbot(height=
|
| 307 |
)
|
| 308 |
|
| 309 |
# 启动应用
|
|
|
|
| 287 |
yield f"❌ Error: {error_detail}\n\n{traceback.format_exc()[:500]}"
|
| 288 |
|
| 289 |
# ========== Gradio 界面 ==========
|
| 290 |
+
with gr.Blocks(title="Financial & Market AI Assistant") as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 291 |
gr.Markdown("# 🤖 Financial & Market AI Assistant")
|
| 292 |
|
| 293 |
chat = gr.ChatInterface(
|
|
|
|
| 299 |
"Get the latest market news about crypto",
|
| 300 |
"Compare Microsoft's latest earnings with its current stock price",
|
| 301 |
],
|
| 302 |
+
chatbot=gr.Chatbot(height=750, show_copy_button=True),
|
| 303 |
)
|
| 304 |
|
| 305 |
# 启动应用
|