Yuan (Cyrus) Chiang commited on
Commit
b113315
1 Parent(s): d937c80

Rollback streamlit version to 1.36.0 for hf space compat. (#11)

Browse files

* add com drifts + animation; add streamlit test

* change back to experimental_fragment

* change hf requirements

* remove streamlit run

Files changed (2) hide show
  1. requirements.txt +1 -1
  2. serve/tasks/combustion.py +1 -1
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- streamlit==1.38.0
2
  plotly
3
  numpy
4
  scipy
 
1
+ streamlit>=1.36.0
2
  plotly
3
  numpy
4
  scipy
serve/tasks/combustion.py CHANGED
@@ -257,7 +257,7 @@ if "time_range" not in st.session_state:
257
  st.session_state.time_range = (0, increment)
258
 
259
 
260
- @st.fragment(run_every=1e-3 if st.session_state.play else None)
261
  def draw_com_drifts_plot():
262
  if st.session_state.play:
263
  start, end = st.session_state.time_range
 
257
  st.session_state.time_range = (0, increment)
258
 
259
 
260
+ @st.experimental_fragment(run_every=1e-3 if st.session_state.play else None)
261
  def draw_com_drifts_plot():
262
  if st.session_state.play:
263
  start, end = st.session_state.time_range