Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +2 -3
ui/contentagentui.py
CHANGED
|
@@ -155,7 +155,7 @@ class ContentAgentUI:
|
|
| 155 |
# Chat controls
|
| 156 |
self.agent_state = gr.State(None)
|
| 157 |
self.prompt = gr.Textbox(label=strInput, placeholder=strPlaceholder, lines=10)
|
| 158 |
-
|
| 159 |
|
| 160 |
# Use bound methods to submit content
|
| 161 |
submit_btn.click(self._call_agent, inputs=[self.prompt, self.agent_state], outputs=self.reply)
|
|
@@ -165,8 +165,7 @@ class ContentAgentUI:
|
|
| 165 |
|
| 166 |
# Examples (optional)
|
| 167 |
self._create_examples()
|
| 168 |
-
|
| 169 |
-
|
| 170 |
# Footer
|
| 171 |
gr.HTML("<div id='footer'>Thanks for trying it out!</div>")
|
| 172 |
|
|
|
|
| 155 |
# Chat controls
|
| 156 |
self.agent_state = gr.State(None)
|
| 157 |
self.prompt = gr.Textbox(label=strInput, placeholder=strPlaceholder, lines=10)
|
| 158 |
+
submit_btn = gr.Button(strSubmit)
|
| 159 |
|
| 160 |
# Use bound methods to submit content
|
| 161 |
submit_btn.click(self._call_agent, inputs=[self.prompt, self.agent_state], outputs=self.reply)
|
|
|
|
| 165 |
|
| 166 |
# Examples (optional)
|
| 167 |
self._create_examples()
|
| 168 |
+
|
|
|
|
| 169 |
# Footer
|
| 170 |
gr.HTML("<div id='footer'>Thanks for trying it out!</div>")
|
| 171 |
|