yetessam commited on
Commit
8ea64e7
·
verified ·
1 Parent(s): 0070f2e

Update ui/contentagentui.py

Browse files
Files changed (1) hide show
  1. ui/contentagentui.py +13 -8
ui/contentagentui.py CHANGED
@@ -2,14 +2,6 @@ import gradio as gr
2
  import os
3
 
4
 
5
- def launch(self):
6
- # build gradio Blocks:
7
- # - status textbox prefilled with health_message
8
- # - “Wake Endpoint” button → calls wake logic, updates status
9
- # - “Initialize Agent” button → if healthy, self.agent = agent_initializer(endpoint_uri); reveal main panel
10
- ...
11
-
12
-
13
 
14
  class ContentAgentUI:
15
 
@@ -107,6 +99,19 @@ class ContentAgentUI:
107
  with self.ca_gui:
108
  gr.Markdown("<div id='footer'>Thanks for trying it out!</div>")
109
 
 
 
 
 
 
 
 
 
 
 
110
  def pass_through_agent(self, agent):
111
  # Assign the agent for future use in `call_agent`
112
  self.agent = agent
 
 
 
 
2
  import os
3
 
4
 
 
 
 
 
 
 
 
 
5
 
6
  class ContentAgentUI:
7
 
 
99
  with self.ca_gui:
100
  gr.Markdown("<div id='footer'>Thanks for trying it out!</div>")
101
 
102
+
103
+
104
+ def launch(self):
105
+ # build gradio Blocks:
106
+ # - status textbox prefilled with health_message
107
+ # - “Wake Endpoint” button → calls wake logic, updates status
108
+ # - “Initialize Agent” button → if healthy, self.agent = agent_initializer(endpoint_uri); reveal main panel
109
+ ...
110
+
111
+
112
  def pass_through_agent(self, agent):
113
  # Assign the agent for future use in `call_agent`
114
  self.agent = agent
115
+
116
+
117
+