FerrellSyntheticIntelligence commited on
Commit
d8b4321
·
1 Parent(s): 1ac8d98

Chore: Deploy minimal infrastructure test to resolve dependency conflict

Browse files
Files changed (3) hide show
  1. app.py +4 -29
  2. app.py.bak +30 -0
  3. requirements.txt +2 -3
app.py CHANGED
@@ -1,30 +1,5 @@
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()
 
1
  import gradio as gr
2
+ def hello():
3
+ return "Vitalis Core: Infrastructure Verified."
4
+ demo = gr.Interface(fn=hello, inputs=[], outputs="text")
5
+ demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app.py.bak ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()
requirements.txt CHANGED
@@ -1,3 +1,2 @@
1
- huggingface_hub
2
- pandas
3
- numpy
 
1
+ gradio==6.15.1
2
+ spaces