Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +2 -2
ui/contentagentui.py
CHANGED
|
@@ -106,8 +106,8 @@ class ContentAgentUI:
|
|
| 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.
|
| 110 |
-
|
| 111 |
gr.Markdown("*No examples found.*")
|
| 112 |
|
| 113 |
|
|
|
|
| 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 |
|