Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +3 -3
ui/contentagentui.py
CHANGED
|
@@ -155,14 +155,14 @@ 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 |
-
submit_btn = gr.Button(strSubmit)
|
| 160 |
|
| 161 |
# Use bound methods to submit content
|
| 162 |
submit_btn.click(self._call_agent, inputs=[self.prompt, self.agent_state], outputs=self.reply)
|
| 163 |
self.prompt.submit(self._call_agent, inputs=[self.prompt, self.agent_state], outputs=self.reply)
|
| 164 |
|
| 165 |
-
|
|
|
|
| 166 |
# Examples (optional)
|
| 167 |
self._create_examples()
|
| 168 |
|
|
|
|
| 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)
|
| 162 |
self.prompt.submit(self._call_agent, inputs=[self.prompt, self.agent_state], outputs=self.reply)
|
| 163 |
|
| 164 |
+
self.reply = gr.Textbox(label=strOutput, interactive=False, lines=12, max_lines=20)
|
| 165 |
+
|
| 166 |
# Examples (optional)
|
| 167 |
self._create_examples()
|
| 168 |
|