Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
#
|
208 |
-
time.sleep(
|
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'])
|
|