FerrellSyntheticIntelligence commited on
Commit ·
690f4ec
1
Parent(s): 059d982
Chore: Update core logic and project manifest
Browse files- MANIFEST.md +18 -0
- app.py +19 -10
- organism_main.py +6 -0
MANIFEST.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Vitalis Core | System Manifest
|
| 2 |
+
|
| 3 |
+
## 1. Core Logic
|
| 4 |
+
- `organism_main.py`: Primary entry point and Ledger verification.
|
| 5 |
+
- `app.py`: Gradio interface for UI-based control.
|
| 6 |
+
|
| 7 |
+
## 2. Configuration
|
| 8 |
+
- `README.md`: Professional metadata and documentation.
|
| 9 |
+
- `requirements.txt`: Dependency stack (gradio).
|
| 10 |
+
|
| 11 |
+
## 3. Operational State
|
| 12 |
+
- Ledger: SHA-256 integrity-checked.
|
| 13 |
+
- Runtime: .venv/ enabled.
|
| 14 |
+
- Remote Sync: GitHub and Hugging Face integrated.
|
| 15 |
+
|
| 16 |
+
## 4. Training Pipeline
|
| 17 |
+
- Status: READY.
|
| 18 |
+
- Trigger: Linked to UI via `app.py`.
|
app.py
CHANGED
|
@@ -1,21 +1,30 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
|
| 6 |
-
def
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
with gr.Blocks() as demo:
|
| 10 |
-
gr.Markdown("# Vitalis Core
|
| 11 |
with gr.Row():
|
| 12 |
-
btn_download = gr.Button("Download Model")
|
| 13 |
btn_train = gr.Button("Train Engine")
|
| 14 |
btn_deploy = gr.Button("Deploy")
|
| 15 |
-
|
| 16 |
output = gr.Textbox(label="Status")
|
| 17 |
|
| 18 |
-
btn_train.click(
|
| 19 |
-
btn_deploy.click(
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from core.brain import VitalisBrain
|
| 3 |
|
| 4 |
+
# Instantiate the brain for the UI
|
| 5 |
+
brain = VitalisBrain()
|
| 6 |
|
| 7 |
+
def trigger_train():
|
| 8 |
+
# Attempt to call the training method
|
| 9 |
+
if hasattr(brain, 'train_mode'):
|
| 10 |
+
return brain.train_mode()
|
| 11 |
+
return "Error: train_mode method not defined in VitalisBrain."
|
| 12 |
+
|
| 13 |
+
def trigger_deploy():
|
| 14 |
+
# Attempt to call the deployment method
|
| 15 |
+
if hasattr(brain, 'deploy_mode'):
|
| 16 |
+
return brain.deploy_mode()
|
| 17 |
+
return "Error: deploy_mode method not defined in VitalisBrain."
|
| 18 |
|
| 19 |
with gr.Blocks() as demo:
|
| 20 |
+
gr.Markdown("# Vitalis Core | Command Center")
|
| 21 |
with gr.Row():
|
|
|
|
| 22 |
btn_train = gr.Button("Train Engine")
|
| 23 |
btn_deploy = gr.Button("Deploy")
|
|
|
|
| 24 |
output = gr.Textbox(label="Status")
|
| 25 |
|
| 26 |
+
btn_train.click(trigger_train, outputs=output)
|
| 27 |
+
btn_deploy.click(trigger_deploy, outputs=output)
|
| 28 |
|
| 29 |
+
if __name__ == "__main__":
|
| 30 |
+
demo.launch()
|
organism_main.py
CHANGED
|
@@ -2,6 +2,7 @@ import sys
|
|
| 2 |
import os
|
| 3 |
from core.ledger import VitalisLedger
|
| 4 |
from core.brain import VitalisBrain
|
|
|
|
| 5 |
|
| 6 |
def main():
|
| 7 |
print("[SYSTEM] Vitalis Core Booting...")
|
|
@@ -20,6 +21,11 @@ def main():
|
|
| 20 |
brain = VitalisBrain()
|
| 21 |
print("[SYSTEM] Cognitive Core Synchronized.")
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
try:
|
| 24 |
while True:
|
| 25 |
cmd = input(">> ")
|
|
|
|
| 2 |
import os
|
| 3 |
from core.ledger import VitalisLedger
|
| 4 |
from core.brain import VitalisBrain
|
| 5 |
+
from extensions.dreamer import Dreamer
|
| 6 |
|
| 7 |
def main():
|
| 8 |
print("[SYSTEM] Vitalis Core Booting...")
|
|
|
|
| 21 |
brain = VitalisBrain()
|
| 22 |
print("[SYSTEM] Cognitive Core Synchronized.")
|
| 23 |
|
| 24 |
+
# Initialize Dreamer Extension
|
| 25 |
+
dreamer = Dreamer(brain=brain)
|
| 26 |
+
dreamer.start()
|
| 27 |
+
print("[SYSTEM] Dreamer Extension Active.")
|
| 28 |
+
|
| 29 |
try:
|
| 30 |
while True:
|
| 31 |
cmd = input(">> ")
|