Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +2 -3
ui/contentagentui.py
CHANGED
|
@@ -105,13 +105,12 @@ class ContentAgentUI:
|
|
| 105 |
with self.main_panel:
|
| 106 |
if examples:
|
| 107 |
example_radio = gr.Radio(choices=examples, label="Try one of these examples:")
|
| 108 |
-
|
| 109 |
example_radio.change(fn=lambda ex: ex, inputs=example_radio, outputs=self.prompt)
|
| 110 |
-
|
| 111 |
gr.Markdown("*No examples found.*")
|
| 112 |
|
| 113 |
|
| 114 |
-
|
| 115 |
# ---------- agent call ----------
|
| 116 |
|
| 117 |
|
|
|
|
| 105 |
with self.main_panel:
|
| 106 |
if examples:
|
| 107 |
example_radio = gr.Radio(choices=examples, label="Try one of these examples:")
|
| 108 |
+
# fill the prompt when an example is picked
|
| 109 |
example_radio.change(fn=lambda ex: ex, inputs=example_radio, outputs=self.prompt)
|
| 110 |
+
else:
|
| 111 |
gr.Markdown("*No examples found.*")
|
| 112 |
|
| 113 |
|
|
|
|
| 114 |
# ---------- agent call ----------
|
| 115 |
|
| 116 |
|