Spaces:
Paused
Paused
Commit
•
d839108
1
Parent(s):
b43643f
bugfix the mappings
Browse files
algo.py
CHANGED
@@ -208,7 +208,7 @@ class Algo:
|
|
208 |
if food_nonfood[1] > 0.9 and food_nonfood[0] == False:
|
209 |
mapping = nonfood_template(input_word, input_word_clean, food_nonfood[1])
|
210 |
store_mapping_to_db(self.db_cursor, self.db_conn, mapping)
|
211 |
-
mappings_with_dictionary[input_word_clean] = mapping
|
212 |
return self.wrap_mapping_with_dictionary_data(mapping)
|
213 |
|
214 |
mapping = self.perform_mapping(input_word)
|
@@ -220,7 +220,7 @@ class Algo:
|
|
220 |
})
|
221 |
|
222 |
store_mapping_to_db(self.db_cursor, self.db_conn, mapping)
|
223 |
-
mappings_with_dictionary[input_word_clean] = mapping
|
224 |
|
225 |
return self.wrap_mapping_with_dictionary_data(mapping)
|
226 |
|
|
|
208 |
if food_nonfood[1] > 0.9 and food_nonfood[0] == False:
|
209 |
mapping = nonfood_template(input_word, input_word_clean, food_nonfood[1])
|
210 |
store_mapping_to_db(self.db_cursor, self.db_conn, mapping)
|
211 |
+
self.mappings_with_dictionary[input_word_clean] = mapping
|
212 |
return self.wrap_mapping_with_dictionary_data(mapping)
|
213 |
|
214 |
mapping = self.perform_mapping(input_word)
|
|
|
220 |
})
|
221 |
|
222 |
store_mapping_to_db(self.db_cursor, self.db_conn, mapping)
|
223 |
+
self.mappings_with_dictionary[input_word_clean] = mapping
|
224 |
|
225 |
return self.wrap_mapping_with_dictionary_data(mapping)
|
226 |
|