Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,8 +83,7 @@ with gr.Blocks(
|
|
| 83 |
)
|
| 84 |
with gr.Column(scale=3):
|
| 85 |
gr.HTML(f"""
|
| 86 |
-
<div style='text-align: center; padding: 20px;
|
| 87 |
-
color: {config.COLORS['background']}; font-size: 24px; font-weight: bold; margin-bottom: 20px;
|
| 88 |
border-radius: 0px 0px 15px 15px;'>
|
| 89 |
π₯οΈ L.C.A.R.S - Local Computer Advanced Reasoning System
|
| 90 |
<br><small style='font-size: 14px;'>USS Enterprise β’ NCC-1701-D β’ Starfleet Command</small>
|
|
@@ -105,7 +104,7 @@ with gr.Blocks(
|
|
| 105 |
with gr.Row():
|
| 106 |
# LEFT COLUMN - INPUT & CONTROLS
|
| 107 |
with gr.Column(scale=2):
|
| 108 |
-
gr.HTML(f"<div style='
|
| 109 |
with gr.Accordion(label="π§ Current AI Reasoning", open=False):
|
| 110 |
thinking_html = gr.HTML(label="AI Thought Process", show_label=True)
|
| 111 |
|
|
@@ -147,7 +146,7 @@ with gr.Blocks(
|
|
| 147 |
|
| 148 |
# MIDDLE COLUMN - RESPONSES
|
| 149 |
with gr.Column(scale=2):
|
| 150 |
-
gr.HTML(f"<div style=
|
| 151 |
|
| 152 |
with gr.Accordion(label="π€ Library Computer Advanced Reasoning System", open=True):
|
| 153 |
plain_text_output = gr.Markdown(
|
|
@@ -157,7 +156,7 @@ with gr.Blocks(
|
|
| 157 |
height=400
|
| 158 |
)
|
| 159 |
|
| 160 |
-
execution_output = gr.HTML(f"<div style=
|
| 161 |
gr.HTML(f"<div style='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>Current Session</div>")
|
| 162 |
|
| 163 |
# Enhanced Chat History Display
|
|
@@ -169,7 +168,7 @@ with gr.Blocks(
|
|
| 169 |
|
| 170 |
# RIGHT COLUMN - ENHANCED CODE ARTIFACTS
|
| 171 |
with gr.Column(scale=2):
|
| 172 |
-
gr.HTML(f"<div style=
|
| 173 |
|
| 174 |
with gr.Accordion(label="π§± Code Artifacts Workshop", open=True):
|
| 175 |
# Enhanced Code Editor with save functionality
|
|
@@ -229,7 +228,7 @@ with gr.Blocks(
|
|
| 229 |
tool_output = gr.Textbox(label="Tool Execution Results", lines=15)
|
| 230 |
|
| 231 |
with gr.TabItem("π» System Tools", elem_id="system_tab"):
|
| 232 |
-
gr.HTML(f"<div style=
|
| 233 |
with gr.Tabs():
|
| 234 |
|
| 235 |
# Tab 1: Code Fragment Analysis
|
|
@@ -277,8 +276,7 @@ with gr.Blocks(
|
|
| 277 |
with gr.TabItem("π Directory"):
|
| 278 |
with gr.Row():
|
| 279 |
gr.HTML(f"""
|
| 280 |
-
<div style='text-align: center;
|
| 281 |
-
color: {config.COLORS['background']}; font-size: 24px; font-weight: bold; margin-bottom: 20px;
|
| 282 |
border-radius: 0px 0px 15px 15px;'>
|
| 283 |
π₯οΈ Analyze an entire directory/project
|
| 284 |
|
|
@@ -287,8 +285,7 @@ with gr.Blocks(
|
|
| 287 |
|
| 288 |
with gr.Column():
|
| 289 |
gr.HTML(f"""
|
| 290 |
-
<div style='text-align: center; padding: 20px; background: linear-gradient(90deg
|
| 291 |
-
color: {config.COLORS['background']}; font-size: 24px; font-weight: bold; margin-bottom: 20px;
|
| 292 |
border-radius: 0px 0px 15px 15px;'>
|
| 293 |
<br><small style='font-size: 14px;'>βΉοΈ Directory Scanning Tips
|
| 294 |
|
|
@@ -323,7 +320,7 @@ with gr.Blocks(
|
|
| 323 |
with gr.Row():
|
| 324 |
# Session Management Column
|
| 325 |
with gr.Column():
|
| 326 |
-
gr.HTML(f"<div style=
|
| 327 |
|
| 328 |
session_status = gr.Textbox(label="Session Status", value="Ready", interactive=False)
|
| 329 |
|
|
@@ -356,7 +353,7 @@ with gr.Blocks(
|
|
| 356 |
|
| 357 |
# Artifact Management Column
|
| 358 |
with gr.Column():
|
| 359 |
-
gr.HTML(f"<div style=
|
| 360 |
|
| 361 |
artifact_status = gr.Textbox(label="Artifact Status", value="Ready", interactive=False)
|
| 362 |
|
|
@@ -652,7 +649,7 @@ with gr.Blocks(
|
|
| 652 |
with gr.Column():
|
| 653 |
with gr.Row():
|
| 654 |
sub_task_output = gr.Textbox(lines=4,show_label=True,container=False,label="Sub Tasks")
|
| 655 |
-
gr.HTML(f"<div style=
|
| 656 |
with gr.Accordion("Task Graph", open=False):
|
| 657 |
task_graph_img = gr.Image(label="Task Reasoning Graph")
|
| 658 |
with gr.Row():
|
|
@@ -663,7 +660,7 @@ with gr.Blocks(
|
|
| 663 |
|
| 664 |
|
| 665 |
with gr.Column():
|
| 666 |
-
gr.HTML(f"<div style=
|
| 667 |
|
| 668 |
with gr.Accordion("Generated Code", open=False):
|
| 669 |
|
|
@@ -682,17 +679,17 @@ with gr.Blocks(
|
|
| 682 |
with gr.Tabs():
|
| 683 |
|
| 684 |
with gr.Tab("Complexity"):
|
| 685 |
-
gr.HTML(f"<div style=
|
| 686 |
|
| 687 |
complexity_output = gr.Markdown(show_label=True,max_height=600,container=True,show_copy_button = True,label="Task Complexity")
|
| 688 |
|
| 689 |
with gr.Tab("Planning"):
|
| 690 |
-
gr.HTML(f"<div style=
|
| 691 |
|
| 692 |
decompose_output = gr.Markdown(show_label=True,container=True,show_copy_button = True,label="Task Analysis")
|
| 693 |
|
| 694 |
with gr.Tab("WorkFlow"):
|
| 695 |
-
gr.HTML(f"<div style=
|
| 696 |
|
| 697 |
workflow_output = gr.Markdown(show_label=True,container=True,label="Task WorkFlow")
|
| 698 |
|
|
@@ -702,8 +699,7 @@ with gr.Blocks(
|
|
| 702 |
|
| 703 |
# Footer
|
| 704 |
gr.HTML(f"""
|
| 705 |
-
<div style='text-align: center; padding: 10px; margin-top: 20px;
|
| 706 |
-
color: {config.COLORS['primary']}; font-size: 12px;
|
| 707 |
border-top: 2px solid {config.COLORS['primary']};'>
|
| 708 |
π L.C.A.R.S - Enhanced Local Computer Advanced Reasoning System v3.0 β’ Starfleet Command β’ Computer Core Online
|
| 709 |
</div>
|
|
|
|
| 83 |
)
|
| 84 |
with gr.Column(scale=3):
|
| 85 |
gr.HTML(f"""
|
| 86 |
+
<div style='text-align: center; padding: 20px; font-size: 24px; font-weight: bold; margin-bottom: 20px;
|
|
|
|
| 87 |
border-radius: 0px 0px 15px 15px;'>
|
| 88 |
π₯οΈ L.C.A.R.S - Local Computer Advanced Reasoning System
|
| 89 |
<br><small style='font-size: 14px;'>USS Enterprise β’ NCC-1701-D β’ Starfleet Command</small>
|
|
|
|
| 104 |
with gr.Row():
|
| 105 |
# LEFT COLUMN - INPUT & CONTROLS
|
| 106 |
with gr.Column(scale=2):
|
| 107 |
+
gr.HTML(f"<div style=' padding: 10px; font-weight: bold;'>π§ REASONING PROCESS</div>")
|
| 108 |
with gr.Accordion(label="π§ Current AI Reasoning", open=False):
|
| 109 |
thinking_html = gr.HTML(label="AI Thought Process", show_label=True)
|
| 110 |
|
|
|
|
| 146 |
|
| 147 |
# MIDDLE COLUMN - RESPONSES
|
| 148 |
with gr.Column(scale=2):
|
| 149 |
+
gr.HTML(f"<div style=font-weight: bold;'>SYSTEM RESPONSE</div>")
|
| 150 |
|
| 151 |
with gr.Accordion(label="π€ Library Computer Advanced Reasoning System", open=True):
|
| 152 |
plain_text_output = gr.Markdown(
|
|
|
|
| 156 |
height=400
|
| 157 |
)
|
| 158 |
|
| 159 |
+
execution_output = gr.HTML(f"<div style=font-weight: bold;'>π§ Execution Results</div>")
|
| 160 |
gr.HTML(f"<div style='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>Current Session</div>")
|
| 161 |
|
| 162 |
# Enhanced Chat History Display
|
|
|
|
| 168 |
|
| 169 |
# RIGHT COLUMN - ENHANCED CODE ARTIFACTS
|
| 170 |
with gr.Column(scale=2):
|
| 171 |
+
gr.HTML(f"<div style=font-weight: bold;'>π§± ENHANCED CODE ARTIFACTS WORKSHOP</div>")
|
| 172 |
|
| 173 |
with gr.Accordion(label="π§± Code Artifacts Workshop", open=True):
|
| 174 |
# Enhanced Code Editor with save functionality
|
|
|
|
| 228 |
tool_output = gr.Textbox(label="Tool Execution Results", lines=15)
|
| 229 |
|
| 230 |
with gr.TabItem("π» System Tools", elem_id="system_tab"):
|
| 231 |
+
gr.HTML(f"<div style= padding: 10px; font-weight: bold;'>π» System Tools</div>")
|
| 232 |
with gr.Tabs():
|
| 233 |
|
| 234 |
# Tab 1: Code Fragment Analysis
|
|
|
|
| 276 |
with gr.TabItem("π Directory"):
|
| 277 |
with gr.Row():
|
| 278 |
gr.HTML(f"""
|
| 279 |
+
<div style='text-align: center; font-size: 24px; font-weight: bold; margin-bottom: 20px;
|
|
|
|
| 280 |
border-radius: 0px 0px 15px 15px;'>
|
| 281 |
π₯οΈ Analyze an entire directory/project
|
| 282 |
|
|
|
|
| 285 |
|
| 286 |
with gr.Column():
|
| 287 |
gr.HTML(f"""
|
| 288 |
+
<div style='text-align: center; padding: 20px; background: linear-gradient(90deg,; font-size: 24px; font-weight: bold; margin-bottom: 20px;
|
|
|
|
| 289 |
border-radius: 0px 0px 15px 15px;'>
|
| 290 |
<br><small style='font-size: 14px;'>βΉοΈ Directory Scanning Tips
|
| 291 |
|
|
|
|
| 320 |
with gr.Row():
|
| 321 |
# Session Management Column
|
| 322 |
with gr.Column():
|
| 323 |
+
gr.HTML(f"<div style= padding: 8px; font-weight: bold;'>π SESSION MANAGEMENT</div>")
|
| 324 |
|
| 325 |
session_status = gr.Textbox(label="Session Status", value="Ready", interactive=False)
|
| 326 |
|
|
|
|
| 353 |
|
| 354 |
# Artifact Management Column
|
| 355 |
with gr.Column():
|
| 356 |
+
gr.HTML(f"<div style= padding: 8px; font-weight: bold;'>π§± ARTIFACT MANAGEMENT</div>")
|
| 357 |
|
| 358 |
artifact_status = gr.Textbox(label="Artifact Status", value="Ready", interactive=False)
|
| 359 |
|
|
|
|
| 649 |
with gr.Column():
|
| 650 |
with gr.Row():
|
| 651 |
sub_task_output = gr.Textbox(lines=4,show_label=True,container=False,label="Sub Tasks")
|
| 652 |
+
gr.HTML(f"<div style= padding: 10px; font-weight: bold;'>Task Strategy and Planning</div>")
|
| 653 |
with gr.Accordion("Task Graph", open=False):
|
| 654 |
task_graph_img = gr.Image(label="Task Reasoning Graph")
|
| 655 |
with gr.Row():
|
|
|
|
| 660 |
|
| 661 |
|
| 662 |
with gr.Column():
|
| 663 |
+
gr.HTML(f"<div style= padding: 10px; font-weight: bold;'>Generated Code</div>")
|
| 664 |
|
| 665 |
with gr.Accordion("Generated Code", open=False):
|
| 666 |
|
|
|
|
| 679 |
with gr.Tabs():
|
| 680 |
|
| 681 |
with gr.Tab("Complexity"):
|
| 682 |
+
gr.HTML(f"<div style= padding: 10px; font-weight: bold;'>Task Complexity</div>")
|
| 683 |
|
| 684 |
complexity_output = gr.Markdown(show_label=True,max_height=600,container=True,show_copy_button = True,label="Task Complexity")
|
| 685 |
|
| 686 |
with gr.Tab("Planning"):
|
| 687 |
+
gr.HTML(f"<div style= padding: 10px; font-weight: bold;'>Sub Task Planning</div>")
|
| 688 |
|
| 689 |
decompose_output = gr.Markdown(show_label=True,container=True,show_copy_button = True,label="Task Analysis")
|
| 690 |
|
| 691 |
with gr.Tab("WorkFlow"):
|
| 692 |
+
gr.HTML(f"<div style= padding: 10px; font-weight: bold;'>Task Work-Flow</div>")
|
| 693 |
|
| 694 |
workflow_output = gr.Markdown(show_label=True,container=True,label="Task WorkFlow")
|
| 695 |
|
|
|
|
| 699 |
|
| 700 |
# Footer
|
| 701 |
gr.HTML(f"""
|
| 702 |
+
<div style='text-align: center; padding: 10px; margin-top: 20px; font-size: 12px;
|
|
|
|
| 703 |
border-top: 2px solid {config.COLORS['primary']};'>
|
| 704 |
π L.C.A.R.S - Enhanced Local Computer Advanced Reasoning System v3.0 β’ Starfleet Command β’ Computer Core Online
|
| 705 |
</div>
|