yetessam commited on
Commit
2dbcb90
·
verified ·
1 Parent(s): c14a3d3

Update ContentGradio.py

Browse files
Files changed (1) hide show
  1. ContentGradio.py +17 -0
ContentGradio.py CHANGED
@@ -100,3 +100,20 @@ class ContentAgentUI:
100
  agent_response = agent(self.user_input.value)
101
  self.output.update(agent_response)
102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  agent_response = agent(self.user_input.value)
101
  self.output.update(agent_response)
102
 
103
+ # Pass the input to the agent
104
+ output = agent.get_response(input_text)
105
+
106
+ # Update the output text box with the agent's response
107
+ self.submit_button.click(
108
+ fn=get_agent_response,
109
+ inputs=self.user_input,
110
+ outputs=self.output
111
+ )
112
+
113
+ self.user_input.submit(
114
+ fn=get_agent_response,
115
+ inputs=self.user_input,
116
+ outputs=self.output
117
+ )
118
+
119
+