AlGe commited on
Commit
282d95f
·
verified ·
1 Parent(s): 28a04a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=gr.Button(label=section), outputs=content)
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