Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -200,10 +200,10 @@ with gr.Blocks(theme=MPGPoster()) as demo:
|
|
| 200 |
with gr.Column(scale=1):
|
| 201 |
gr.Markdown("## Navigation")
|
| 202 |
sections = ["Introduction", "Method", "Demo", "Conclusion"]
|
| 203 |
-
section_buttons = [gr.Button(section) for section in sections]
|
| 204 |
|
| 205 |
for button, section in zip(section_buttons, sections):
|
| 206 |
-
button.click(fn=update_content, inputs=
|
| 207 |
|
| 208 |
with gr.Column(scale=4):
|
| 209 |
content
|
|
|
|
| 200 |
with gr.Column(scale=1):
|
| 201 |
gr.Markdown("## Navigation")
|
| 202 |
sections = ["Introduction", "Method", "Demo", "Conclusion"]
|
| 203 |
+
section_buttons = [gr.Button(value=section) for section in sections]
|
| 204 |
|
| 205 |
for button, section in zip(section_buttons, sections):
|
| 206 |
+
button.click(fn=update_content, inputs=section, outputs=content)
|
| 207 |
|
| 208 |
with gr.Column(scale=4):
|
| 209 |
content
|