LeroyDyer commited on
Commit
c534632
Β·
verified Β·
1 Parent(s): 4534406

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -20
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; background: linear-gradient(90deg, {config.COLORS['primary']}, {config.COLORS['accent']});
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>🧠 REASONING PROCESS</div>")
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>SYSTEM RESPONSE</div>")
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>🧠 Execution Results</div>")
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>🧱 ENHANCED CODE ARTIFACTS WORKSHOP</div>")
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>πŸ’» System Tools</div>")
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; padding: 20px; background: linear-gradient(90deg, {config.COLORS['primary']}, {config.COLORS['accent']});
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, {config.COLORS['primary']}, {config.COLORS['accent']});
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='background: {config.COLORS['info']}; color: {config.COLORS['background']}; padding: 8px; font-weight: bold;'>πŸ“œ SESSION MANAGEMENT</div>")
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='background: {config.COLORS['success']}; color: {config.COLORS['background']}; padding: 8px; font-weight: bold;'>🧱 ARTIFACT MANAGEMENT</div>")
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>Task Strategy and Planning</div>")
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>Generated Code</div>")
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>Task Complexity</div>")
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>Sub Task Planning</div>")
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='background: {config.COLORS['primary']}; color: {config.COLORS['background']}; padding: 10px; font-weight: bold;'>Task Work-Flow</div>")
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>