FerrellSyntheticIntelligence commited on
Commit
8adfa22
·
1 Parent(s): b9e4b7b

Feature: Add Gradio web interface for professional UI

Browse files
Files changed (2) hide show
  1. app.py +16 -15
  2. requirements.txt +1 -4
app.py CHANGED
@@ -1,20 +1,21 @@
1
  import gradio as gr
2
- from src.core.memory_engine import MemoryEngine
3
 
4
- # Initialize the Sovereign Brain
5
- brain = MemoryEngine()
6
- brain.ingest_knowledge('storage/knowledge')
7
 
8
- def vitalis_chat(user_message, history):
9
- # Retrieve relevant protocol from local vector store
10
- response = brain.query(user_message)
11
- return f"[VITALIS_CORE_UI]: {response}"
12
 
13
- demo = gr.ChatInterface(
14
- fn=vitalis_chat,
15
- title="Vitalis Synthetic Intelligence | Sovereign Core",
16
- theme="soft"
17
- )
 
 
 
 
 
 
18
 
19
- if __name__ == "__main__":
20
- demo.launch()
 
1
  import gradio as gr
 
2
 
3
+ def train_engine():
4
+ return "Training initiated..."
 
5
 
6
+ def deploy_engine():
7
+ return "Engine deployed to production."
 
 
8
 
9
+ with gr.Blocks() as demo:
10
+ gr.Markdown("# Vitalis Core Engine")
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(train_engine, outputs=output)
19
+ btn_deploy.click(deploy_engine, outputs=output)
20
 
21
+ demo.launch()
 
requirements.txt CHANGED
@@ -1,4 +1 @@
1
- gradio==4.26.0
2
- sentence-transformers
3
- faiss-cpu
4
- numpy
 
1
+ gradio