Spaces:
Sleeping
Sleeping
=
commited on
Commit
·
7dc7c6c
1
Parent(s):
df1b485
testing updating
Browse files
pages/provide_sentences_mongo.py
CHANGED
@@ -189,7 +189,8 @@ def update_sentences():
|
|
189 |
st.warning("You didn't provide a sentence ! Please provide before submitting.", icon= "🚨")
|
190 |
|
191 |
else:
|
192 |
-
|
|
|
193 |
db_manager.update_document(number,
|
194 |
{
|
195 |
'french': sentence_1,
|
@@ -225,9 +226,9 @@ st.sidebar.selectbox("French sentences", key="french_sentence", options = french
|
|
225 |
st.sidebar.selectbox("Wolof sentences", key="wolof_sentence", options = wolof_examples['sentences'], on_change=add_wolof_sentence_to_text)
|
226 |
|
227 |
# add a submit button to add new sentences
|
228 |
-
st.button('Submit', 'submit_button', on_click=add_new_sentences)
|
229 |
-
st.button('Place', 'submit_button2', on_click=add_new_sentences2)
|
230 |
-
st.button('Update', 'submit_button3', on_click=update_sentences)
|
231 |
|
232 |
st.markdown("""---""")
|
233 |
|
|
|
189 |
st.warning("You didn't provide a sentence ! Please provide before submitting.", icon= "🚨")
|
190 |
|
191 |
else:
|
192 |
+
print(sentence_1)
|
193 |
+
print(sentence_2)
|
194 |
db_manager.update_document(number,
|
195 |
{
|
196 |
'french': sentence_1,
|
|
|
226 |
st.sidebar.selectbox("Wolof sentences", key="wolof_sentence", options = wolof_examples['sentences'], on_change=add_wolof_sentence_to_text)
|
227 |
|
228 |
# add a submit button to add new sentences
|
229 |
+
st.button('Submit', 'submit_button', on_click=add_new_sentences, help="Place the new sentences without deleting them.")
|
230 |
+
st.button('Place', 'submit_button2', on_click=add_new_sentences2, help="Remove sentences when placing them inside the data set.")
|
231 |
+
st.button('Update', 'submit_button3', on_click=update_sentences, help="Modify the sentences at the index indicated to 'Provide line to modify'.")
|
232 |
|
233 |
st.markdown("""---""")
|
234 |
|