eaglelandsonce commited on
Commit
e3b76ee
·
verified ·
1 Parent(s): 1957014

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -163,6 +163,9 @@ chart_placeholder = right_column.empty()
163
 
164
  markdonw_position = right_column.markdown(f"```\n{positions_text}\n```")
165
 
 
 
 
166
  # Placeholder for displaying additional data below the chart.
167
  data_placeholder = right_column.empty()
168
 
@@ -204,6 +207,5 @@ while True:
204
  # Increment the frame index to display the next set of positions
205
  current_frame += 1
206
 
207
- # Pause for a moment before updating the chart with new positions
208
- time.sleep(2)
209
-
 
163
 
164
  markdonw_position = right_column.markdown(f"```\n{positions_text}\n```")
165
 
166
+ animation_speed = left_column.slider("Animation Speed (Seconds per Frame)", 1, 10, 2, key='animation_speed')
167
+
168
+
169
  # Placeholder for displaying additional data below the chart.
170
  data_placeholder = right_column.empty()
171
 
 
207
  # Increment the frame index to display the next set of positions
208
  current_frame += 1
209
 
210
+ # Use the slider value for the sleep duration
211
+ time.sleep(st.session_state['animation_speed'])