xhluca commited on
Commit
d45fbdd
1 Parent(s): cfdb2f8

Set default recording name

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -247,7 +247,7 @@ def run():
247
  demo_names = os.listdir(demonstration_dir)
248
 
249
  def update_recording_name():
250
- st.query_params["recording"] = st.session_state.get("recording_name")
251
 
252
  # For initial run, set the query parameter to the selected recording
253
  if not st.query_params.get("recording"):
 
247
  demo_names = os.listdir(demonstration_dir)
248
 
249
  def update_recording_name():
250
+ st.query_params["recording"] = st.session_state.get("recording_name", demo_names[0])
251
 
252
  # For initial run, set the query parameter to the selected recording
253
  if not st.query_params.get("recording"):