Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ chosen_language = st.sidebar.selectbox(
|
|
27 |
|
28 |
samples = load_data(chosen_language)
|
29 |
st.sidebar.header('Sample Selection')
|
30 |
-
index_example = st.sidebar.number_input(f"Choose a sample from the existing {len(samples)}
|
31 |
|
32 |
#db_id = samples[index_example]["db_id"]
|
33 |
#st.markdown(f'<h2 style="color:blue;">{index_example} Question:</h2>', unsafe_allow_html=True)
|
|
|
27 |
|
28 |
samples = load_data(chosen_language)
|
29 |
st.sidebar.header('Sample Selection')
|
30 |
+
index_example = st.sidebar.number_input(f"Choose a sample from the existing {len(samples)} samples:", min_value=0, max_value=max(0, len(samples)-1), value=0, step=1)
|
31 |
|
32 |
#db_id = samples[index_example]["db_id"]
|
33 |
#st.markdown(f'<h2 style="color:blue;">{index_example} Question:</h2>', unsafe_allow_html=True)
|