evelynsaltt commited on
Commit
e84fdcd
·
verified ·
1 Parent(s): b0fe31d

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +15 -1
src/streamlit_app.py CHANGED
@@ -22,8 +22,22 @@ st.markdown(
22
  unsafe_allow_html=True
23
  )
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  # Slider (starts at 0.5)
26
- weight = st.slider("Interpolation Weight", 0.0, 1.0, 0.5, step=0.1)
27
 
28
  # Filenames
29
  filename_interp = f"videos_generated_{weight:.1f}.mp4"
 
22
  unsafe_allow_html=True
23
  )
24
 
25
+ # Hide the orange filled track of the slider
26
+ st.markdown("""
27
+ <style>
28
+ /* Hide the filled track */
29
+ .stSlider > div[data-baseweb="slider"] > div > div:nth-child(2) {
30
+ background: transparent !important;
31
+ }
32
+ /* Optional: adjust track background to be subtle */
33
+ .stSlider > div[data-baseweb="slider"] > div > div:first-child {
34
+ background-color: #ccc !important;
35
+ }
36
+ </style>
37
+ """, unsafe_allow_html=True)
38
+
39
  # Slider (starts at 0.5)
40
+ weight = st.slider("Interpolation Weight", 0.1, 0.9, 0.5, step=0.1)
41
 
42
  # Filenames
43
  filename_interp = f"videos_generated_{weight:.1f}.mp4"