yetessam commited on
Commit
36c9ec4
·
verified ·
1 Parent(s): af50e61

Update ui/contentagentui.py

Browse files
Files changed (1) hide show
  1. ui/contentagentui.py +1 -4
ui/contentagentui.py CHANGED
@@ -146,6 +146,7 @@ class ContentAgentUI:
146
  # Examples (optional)
147
  gr.Markdown("### Try one of these examples")
148
  if examples:
 
149
  self.examples_radio = gr.Radio(choices=examples, label="Examples")
150
  # fill the prompt when an example is picked
151
  self.examples_radio.change(lambda ex: ex, inputs=self.examples_radio, outputs=self.prompt)
@@ -155,10 +156,6 @@ class ContentAgentUI:
155
  # Footer
156
  gr.Markdown("<div id='footer'>Thanks for trying it out!</div>")
157
 
158
- show_btn = gr.Button("Show default prompt templates")
159
- defaults_out = gr.Code(label="Prompt templates (YAML)", language="yaml", interactive=False)
160
-
161
- show_btn.click(fn=_print_defaults_wrapper, outputs=defaults_out)
162
 
163
 
164
  # --- AUTO INIT ON LOAD IF HEALTHY ---
 
146
  # Examples (optional)
147
  gr.Markdown("### Try one of these examples")
148
  if examples:
149
+ gr.Markdown("examples found")
150
  self.examples_radio = gr.Radio(choices=examples, label="Examples")
151
  # fill the prompt when an example is picked
152
  self.examples_radio.change(lambda ex: ex, inputs=self.examples_radio, outputs=self.prompt)
 
156
  # Footer
157
  gr.Markdown("<div id='footer'>Thanks for trying it out!</div>")
158
 
 
 
 
 
159
 
160
 
161
  # --- AUTO INIT ON LOAD IF HEALTHY ---