Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,7 +67,7 @@ def run_agent_task(task_type, user_input, custom_sys_prompt, max_tokens, temp, t
|
|
| 67 |
# ==========================================
|
| 68 |
# 4. DASHBOARD INTERFACE DESIGN
|
| 69 |
# ==========================================
|
| 70 |
-
with gr.Blocks(
|
| 71 |
|
| 72 |
# Header & About Banner (Inspired by Screenshot 573)
|
| 73 |
with gr.Row():
|
|
@@ -81,7 +81,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 81 |
with gr.Column(scale=1, min_width=150):
|
| 82 |
gr.Markdown("### 📊 Metrics\n🚀 **98.4% Success**\n⚡ **CPU Active**")
|
| 83 |
|
| 84 |
-
gr.HTML("<hr style='border: 1px solid #e5e7eb;'/>")
|
| 85 |
|
| 86 |
with gr.Row():
|
| 87 |
# LEFT-HAND COLUMN: Interactive Workspaces & Hyperparameters
|
|
@@ -123,7 +123,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 123 |
)
|
| 124 |
generalizer_btn = gr.Button("Generalize for Easy Understanding", variant="primary")
|
| 125 |
|
| 126 |
-
gr.Spacer()
|
|
|
|
| 127 |
|
| 128 |
# Advanced Parameters Accordion (Inspired by Screenshot 579)
|
| 129 |
with gr.Accordion("⚙️ Advanced Agent Parameter Configurations", open=False):
|
|
@@ -172,4 +173,5 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 172 |
)
|
| 173 |
|
| 174 |
if __name__ == "__main__":
|
| 175 |
-
|
|
|
|
|
|
| 67 |
# ==========================================
|
| 68 |
# 4. DASHBOARD INTERFACE DESIGN
|
| 69 |
# ==========================================
|
| 70 |
+
with gr.Blocks() as demo:
|
| 71 |
|
| 72 |
# Header & About Banner (Inspired by Screenshot 573)
|
| 73 |
with gr.Row():
|
|
|
|
| 81 |
with gr.Column(scale=1, min_width=150):
|
| 82 |
gr.Markdown("### 📊 Metrics\n🚀 **98.4% Success**\n⚡ **CPU Active**")
|
| 83 |
|
| 84 |
+
gr.HTML("<hr style='border: 1px solid #e5e7eb; margin-bottom: 20px;'/>")
|
| 85 |
|
| 86 |
with gr.Row():
|
| 87 |
# LEFT-HAND COLUMN: Interactive Workspaces & Hyperparameters
|
|
|
|
| 123 |
)
|
| 124 |
generalizer_btn = gr.Button("Generalize for Easy Understanding", variant="primary")
|
| 125 |
|
| 126 |
+
# Replaced deprecated gr.Spacer() with native HTML margin block
|
| 127 |
+
gr.HTML("<div style='height: 15px;'></div>")
|
| 128 |
|
| 129 |
# Advanced Parameters Accordion (Inspired by Screenshot 579)
|
| 130 |
with gr.Accordion("⚙️ Advanced Agent Parameter Configurations", open=False):
|
|
|
|
| 173 |
)
|
| 174 |
|
| 175 |
if __name__ == "__main__":
|
| 176 |
+
# Theme configuration moved to launch parameter to fully satisfy Gradio 6.0 specifications
|
| 177 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, theme=gr.themes.Soft())
|