Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +1 -3
ui/contentagentui.py
CHANGED
|
@@ -54,7 +54,6 @@ class ContentAgentUI:
|
|
| 54 |
- Compute: {self.compute}
|
| 55 |
- Content Agent's LLM runs on-demand and will drop into sleep mode to save resources
|
| 56 |
|
| 57 |
-
Please add your content below.
|
| 58 |
""")
|
| 59 |
|
| 60 |
|
|
@@ -142,7 +141,7 @@ class ContentAgentUI:
|
|
| 142 |
""")
|
| 143 |
|
| 144 |
# Main panel (hidden until agent is initialized)
|
| 145 |
-
with gr.Group(visible=False, elem_id="
|
| 146 |
# English only
|
| 147 |
strInput = "Content Input"
|
| 148 |
strPlaceholder="Copy and paste your content for evaluation here..."
|
|
@@ -153,7 +152,6 @@ class ContentAgentUI:
|
|
| 153 |
# Guidance / about
|
| 154 |
self._create_user_guidance()
|
| 155 |
|
| 156 |
-
|
| 157 |
# Chat controls
|
| 158 |
self.agent_state = gr.State(None)
|
| 159 |
self.prompt = gr.Textbox(label=strInput, placeholder=strPlaceholder, lines=10)
|
|
|
|
| 54 |
- Compute: {self.compute}
|
| 55 |
- Content Agent's LLM runs on-demand and will drop into sleep mode to save resources
|
| 56 |
|
|
|
|
| 57 |
""")
|
| 58 |
|
| 59 |
|
|
|
|
| 141 |
""")
|
| 142 |
|
| 143 |
# Main panel (hidden until agent is initialized)
|
| 144 |
+
with gr.Group(visible=False, elem_id="main_panel" ) as self.main_panel:
|
| 145 |
# English only
|
| 146 |
strInput = "Content Input"
|
| 147 |
strPlaceholder="Copy and paste your content for evaluation here..."
|
|
|
|
| 152 |
# Guidance / about
|
| 153 |
self._create_user_guidance()
|
| 154 |
|
|
|
|
| 155 |
# Chat controls
|
| 156 |
self.agent_state = gr.State(None)
|
| 157 |
self.prompt = gr.Textbox(label=strInput, placeholder=strPlaceholder, lines=10)
|