lcjln commited on
Commit
2f5189b
Β·
verified Β·
1 Parent(s): fd4b886

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -229,7 +229,12 @@ if st.session_state['chat_logs']:
229
  )
230
 
231
  # κ·Έλž˜ν”„ 좜λ ₯
232
- st.plotly_chart(fig, use_container_width=True)
 
 
 
 
 
233
 
234
  # μ„ νƒλœ μ‹œκ°„λŒ€ ν‘œμ‹œ
235
  display_selected_times()
 
229
  )
230
 
231
  # κ·Έλž˜ν”„ 좜λ ₯
232
+ clicked_time = st.plotly_chart(fig, use_container_width=True)
233
+
234
+ # ν΄λ¦­ν•œ μ‹œκ°„λŒ€ μ €μž₯
235
+ if clicked_time and 'points' in clicked_time:
236
+ selected_time = clicked_time['points'][0]['x']
237
+ add_selected_time(selected_time)
238
 
239
  # μ„ νƒλœ μ‹œκ°„λŒ€ ν‘œμ‹œ
240
  display_selected_times()