Update app.py
Browse files
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 |
-
|
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"])
|