RohitGandikota commited on
Commit
68aea2a
·
verified ·
1 Parent(s): bf45264

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -312,14 +312,14 @@ with gr.Blocks(css=css) as demo:
312
  with gr.Row():
313
  with gr.Column():
314
  instructions_md = gr.Markdown(simple_instructions)
315
- toggle_btn = gr.Button("Show Detailed Instructions")
316
 
317
- # Toggle button to switch between simple and detailed instructions
318
- toggle_btn.click(
319
- fn=toggle_instructions,
320
- inputs=[gr.State(False)], # Initial state is False (simple instructions)
321
- outputs=[instructions_md, toggle_btn, gr.State()] # Return updated state
322
- )
323
 
324
  with gr.Row():
325
  prompt = gr.Text(
 
312
  with gr.Row():
313
  with gr.Column():
314
  instructions_md = gr.Markdown(simple_instructions)
315
+ # toggle_btn = gr.Button("Show Detailed Instructions")
316
 
317
+ # # Toggle button to switch between simple and detailed instructions
318
+ # toggle_btn.click(
319
+ # fn=toggle_instructions,
320
+ # inputs=[gr.State(False)], # Initial state is False (simple instructions)
321
+ # outputs=[instructions_md, toggle_btn, gr.State()] # Return updated state
322
+ # )
323
 
324
  with gr.Row():
325
  prompt = gr.Text(