loubnabnl HF staff commited on
Commit
44670dc
·
1 Parent(s): 8aac646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ source = st.selectbox("Data source", ['all', 'wikihow','khan_academy', 'stanford
20
  samples = load_data(source)
21
  n_samples = len(samples)
22
 
23
- index = st.number_input(f"Index of the sample (out of {n_samples}):", min_value=0, max_value=n_samples-1, value=0, step=1)
24
  st.markdown(f"Displaying source: {source}")
25
  st.subheader("Prompt")
26
  st.markdown(samples[index_example]["prompt"])
 
20
  samples = load_data(source)
21
  n_samples = len(samples)
22
 
23
+ index_example = st.number_input(f"Index of the sample (out of {n_samples}):", min_value=0, max_value=n_samples-1, value=0, step=1)
24
  st.markdown(f"Displaying source: {source}")
25
  st.subheader("Prompt")
26
  st.markdown(samples[index_example]["prompt"])