Spaces:
Sleeping
Sleeping
=
commited on
Commit
·
adcee77
1
Parent(s):
6ad7167
remove global to test
Browse files
pages/provide_sentences_mongo.py
CHANGED
@@ -77,8 +77,6 @@ def add_wolof_sentence_to_text():
|
|
77 |
# let us create a callback which permit us to add sentences inside a DataFrame
|
78 |
def add_new_sentences():
|
79 |
|
80 |
-
global sentences
|
81 |
-
|
82 |
sentence_1 = st.session_state.left_sentence.strip()
|
83 |
|
84 |
sentence_2 = st.session_state.right_sentence.strip()
|
@@ -106,8 +104,6 @@ def add_new_sentences():
|
|
106 |
# let us create a callback which permit us to add sentences inside a DataFrame
|
107 |
def add_new_sentences2():
|
108 |
|
109 |
-
global sentences
|
110 |
-
|
111 |
sentence_1 = st.session_state.left_sentence.strip()
|
112 |
|
113 |
sentence_2 = st.session_state.right_sentence.strip()
|
@@ -138,8 +134,6 @@ def add_new_sentences2():
|
|
138 |
|
139 |
def delete_line():
|
140 |
|
141 |
-
global sentences
|
142 |
-
|
143 |
number = st.session_state.line1
|
144 |
|
145 |
if not number in set(sentences['_id']):
|
@@ -156,8 +150,6 @@ def delete_line():
|
|
156 |
|
157 |
def modify_line():
|
158 |
|
159 |
-
global sentences
|
160 |
-
|
161 |
number = st.session_state.line2
|
162 |
|
163 |
if not number in set(sentences['_id']):
|
|
|
77 |
# let us create a callback which permit us to add sentences inside a DataFrame
|
78 |
def add_new_sentences():
|
79 |
|
|
|
|
|
80 |
sentence_1 = st.session_state.left_sentence.strip()
|
81 |
|
82 |
sentence_2 = st.session_state.right_sentence.strip()
|
|
|
104 |
# let us create a callback which permit us to add sentences inside a DataFrame
|
105 |
def add_new_sentences2():
|
106 |
|
|
|
|
|
107 |
sentence_1 = st.session_state.left_sentence.strip()
|
108 |
|
109 |
sentence_2 = st.session_state.right_sentence.strip()
|
|
|
134 |
|
135 |
def delete_line():
|
136 |
|
|
|
|
|
137 |
number = st.session_state.line1
|
138 |
|
139 |
if not number in set(sentences['_id']):
|
|
|
150 |
|
151 |
def modify_line():
|
152 |
|
|
|
|
|
153 |
number = st.session_state.line2
|
154 |
|
155 |
if not number in set(sentences['_id']):
|