Spaces:
Runtime error
Runtime error
Commit ·
b3000cb
1
Parent(s): b5294ab
Update main.py
Browse files
main.py
CHANGED
|
@@ -149,7 +149,7 @@ def replace_zero_with_null(d):
|
|
| 149 |
|
| 150 |
def process_json_sf(nl_json, sentence):
|
| 151 |
"""
|
| 152 |
-
Function to
|
| 153 |
"""
|
| 154 |
try:
|
| 155 |
|
|
@@ -167,13 +167,14 @@ def process_json_sf(nl_json, sentence):
|
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
-
def main(sentence):
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
nl_data = natural_language_module(sentence)
|
| 176 |
-
nl_json = process_json_sf(nl_data, sentence)
|
| 177 |
-
nl_json_with_null = replace_zero_with_null(nl_json)
|
| 178 |
|
| 179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
def process_json_sf(nl_json, sentence):
|
| 151 |
"""
|
| 152 |
+
Function to convert the captured information an a relevant json format
|
| 153 |
"""
|
| 154 |
try:
|
| 155 |
|
|
|
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
+
# def main(sentence):
|
| 171 |
+
def main():
|
| 172 |
+
"""
|
| 173 |
+
Function to bind together all the info and be executed
|
| 174 |
+
"""
|
|
|
|
|
|
|
|
|
|
| 175 |
|
| 176 |
+
nl_data = natural_language_module(sentence)
|
| 177 |
+
nl_json = process_json_sf(nl_data, sentence)
|
| 178 |
+
nl_json_with_null = replace_zero_with_null(nl_json)
|
| 179 |
+
|
| 180 |
+
return send_json_to_endpoint(nl_json_with_null, "searchuser", "SearchUser")
|