Iโm trying to have a slider that has more than 8 digits, but if I do it will freeze the website and never load the input
I run the code with
"C:\MyActualPath\code\webapp.py"
Code snippet:
slider = st.sidebar.slider('AidAmount_mean', 0, 123456789, 5)
Should load just fine as it supports doubles and ints
Every time I try to add a number bigger than 8 (even 7 struggles), when I load the site it will freeze for a minute and then never load the slider
- Streamlit version: version 0.81.0
- Python version: Python 3.9.2
- Using pip
- OS version: Windows 10
- Browser version: Happens in every browser
Full code:
import pandas as pd
import streamlit as st
st.write("""
# NY Crime Prediction App
""")
st.sidebar.header('User Input Parameters')
def user_input_features():
AidAmount_mean = st.sidebar.slider('AidAmount_mean', 0, 1234567, 5)
CrimesReported_mean = st.sidebar.slider('CrimesReported_mean', 0, 50562, 9340)
data = {'AidAmount_mean': AidAmount_mean,
'CrimesReported_mean': CrimesReported_mean}
features = pd.DataFrame(data, index=[0])
return features
df = user_input_features()
st.subheader('User Input parameters')
st.write(df)```