RohitGandikota commited on
Commit
cdec237
·
verified ·
1 Parent(s): 0f50532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -291,6 +291,11 @@ SliderSpace allows you to explore diffusion model knowledge's concept directions
291
  - Try multiple directions if you're not seeing the effect you want
292
  """
293
 
 
 
 
 
 
294
 
295
  with gr.Blocks(css=css) as demo:
296
  with gr.Column(elem_id="col-container"):
 
291
  - Try multiple directions if you're not seeing the effect you want
292
  """
293
 
294
+ def toggle_instructions(show_detailed):
295
+ if show_detailed:
296
+ return gr.Markdown(detailed_instructions), gr.Button("Show Simple Instructions")
297
+ else:
298
+ return gr.Markdown(simple_instructions), gr.Button("Show Detailed Instructions")
299
 
300
  with gr.Blocks(css=css) as demo:
301
  with gr.Column(elem_id="col-container"):