chansung commited on
Commit
970166d
·
1 Parent(s): 15f9e2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,7 +36,7 @@ def gallery_select(gallery, evt: gr.SelectData):
36
  print(evt.target)
37
 
38
  return [
39
- gr.update(value=titles[evt.index], visible=True),
40
  gr.update(value=stories[evt.index], visible=True),
41
  ]
42
 
@@ -67,7 +67,7 @@ with gr.Blocks(css=STYLES) as demo:
67
  gallery = gr.Gallery(get_gallery, every=3600, columns=10, height=500, container=False)
68
 
69
  with gr.Column():
70
- title = gr.Markdown(f"## {title}", visible=False, elem_classes=['center'])
71
  story = gr.Markdown("stories goes here...", visible=False, elem_classes=['small-big'])
72
 
73
  gallery.select(
 
36
  print(evt.target)
37
 
38
  return [
39
+ gr.update(value=f"## {titles[evt.index]}", visible=True),
40
  gr.update(value=stories[evt.index], visible=True),
41
  ]
42
 
 
67
  gallery = gr.Gallery(get_gallery, every=3600, columns=10, height=500, container=False)
68
 
69
  with gr.Column():
70
+ title = gr.Markdown("title", visible=False, elem_classes=['center'])
71
  story = gr.Markdown("stories goes here...", visible=False, elem_classes=['small-big'])
72
 
73
  gallery.select(