Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
320 |
-
|
321 |
-
|
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(
|