Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +5 -5
ui/contentagentui.py
CHANGED
|
@@ -102,7 +102,7 @@ class ContentAgentUI:
|
|
| 102 |
if self.app is not None:
|
| 103 |
return self.app
|
| 104 |
|
| 105 |
-
|
| 106 |
|
| 107 |
# Optional: Adjust path if needed for hosted environments
|
| 108 |
css_path = os.path.join(os.getcwd(), "ui", "styles.css")
|
|
@@ -121,9 +121,9 @@ class ContentAgentUI:
|
|
| 121 |
lines=8,
|
| 122 |
interactive=False,
|
| 123 |
)
|
| 124 |
-
|
| 125 |
start_btn = gr.Button("Start Agent")
|
| 126 |
-
|
| 127 |
gr.HTML("""
|
| 128 |
<p>It may take up to 5 minutes to wake up the agent"</p>
|
| 129 |
""")
|
|
@@ -152,9 +152,9 @@ class ContentAgentUI:
|
|
| 152 |
|
| 153 |
|
| 154 |
# Examples (optional)
|
| 155 |
-
|
| 156 |
if examples:
|
| 157 |
-
gr.Markdown("examples
|
| 158 |
self.examples_radio = gr.Radio(choices=examples, label="Examples")
|
| 159 |
# fill the prompt when an example is picked
|
| 160 |
self.examples_radio.change(lambda ex: ex, inputs=self.examples_radio, outputs=self.prompt)
|
|
|
|
| 102 |
if self.app is not None:
|
| 103 |
return self.app
|
| 104 |
|
| 105 |
+
|
| 106 |
|
| 107 |
# Optional: Adjust path if needed for hosted environments
|
| 108 |
css_path = os.path.join(os.getcwd(), "ui", "styles.css")
|
|
|
|
| 121 |
lines=8,
|
| 122 |
interactive=False,
|
| 123 |
)
|
| 124 |
+
|
| 125 |
start_btn = gr.Button("Start Agent")
|
| 126 |
+
|
| 127 |
gr.HTML("""
|
| 128 |
<p>It may take up to 5 minutes to wake up the agent"</p>
|
| 129 |
""")
|
|
|
|
| 152 |
|
| 153 |
|
| 154 |
# Examples (optional)
|
| 155 |
+
examples = self._load_examples()
|
| 156 |
if examples:
|
| 157 |
+
gr.Markdown("### Try one of these examples")
|
| 158 |
self.examples_radio = gr.Radio(choices=examples, label="Examples")
|
| 159 |
# fill the prompt when an example is picked
|
| 160 |
self.examples_radio.change(lambda ex: ex, inputs=self.examples_radio, outputs=self.prompt)
|