yetessam commited on
Commit
608f542
·
verified ·
1 Parent(s): 7b954f4

Update ContentGradio.py

Browse files
Files changed (1) hide show
  1. ContentGradio.py +5 -5
ContentGradio.py CHANGED
@@ -31,6 +31,7 @@ class ContentAgentUI:
31
  css_path = os.path.join(os.getcwd(), "ui", "styles.css")
32
 
33
  self.ca_gui = gr.Blocks(css=css_path)
 
34
  self.sections = [
35
  self.create_header,
36
  self.create_user_guidance,
@@ -42,7 +43,7 @@ class ContentAgentUI:
42
  for section in self.sections:
43
  section()
44
 
45
-
46
 
47
  def create_header(self):
48
  agent_header = """
@@ -93,10 +94,9 @@ class ContentAgentUI:
93
  with self.ca_gui:
94
  gr.Markdown("<div id='footer'>Thanks for trying it out!</div>")
95
 
96
- def launch(self):
97
- self.ca_gui.launch()
98
 
99
  def pass_through_agent(self, agent):
100
- # Code to pass through the agent
101
- pass
 
102
 
 
31
  css_path = os.path.join(os.getcwd(), "ui", "styles.css")
32
 
33
  self.ca_gui = gr.Blocks(css=css_path)
34
+ #self.ca_gui = gr.Blocks()
35
  self.sections = [
36
  self.create_header,
37
  self.create_user_guidance,
 
43
  for section in self.sections:
44
  section()
45
 
46
+ self.ca_gui.launch()
47
 
48
  def create_header(self):
49
  agent_header = """
 
94
  with self.ca_gui:
95
  gr.Markdown("<div id='footer'>Thanks for trying it out!</div>")
96
 
 
 
97
 
98
  def pass_through_agent(self, agent):
99
+ # Simulate the agent's response
100
+ agent_response = agent(self.user_input.value)
101
+ self.output.update(agent_response)
102