Spaces:
Runtime error
Runtime error
Add new sample button
Browse files
app.py
CHANGED
@@ -84,6 +84,9 @@ with st.sidebar:
|
|
84 |
|
85 |
selected_text = reload_example_text_data("Burmese", selected_tokenizers)
|
86 |
st.subheader(f"**Sampled Text:** `{selected_text}`")
|
|
|
|
|
|
|
87 |
st.subheader("Number of Tokens")
|
88 |
st.table(st.session_state.examplesdf)
|
89 |
|
|
|
84 |
|
85 |
selected_text = reload_example_text_data("Burmese", selected_tokenizers)
|
86 |
st.subheader(f"**Sampled Text:** `{selected_text}`")
|
87 |
+
if st.button("🔄 New sample"):
|
88 |
+
selected_text = reload_example_text_data("Burmese", selected_tokenizers)
|
89 |
+
st.experimental_rerun()
|
90 |
st.subheader("Number of Tokens")
|
91 |
st.table(st.session_state.examplesdf)
|
92 |
|