Spaces:
Runtime error
Runtime error
Commit ·
b949fc4
1
Parent(s): b491c91
Update main.py
Browse files
main.py
CHANGED
|
@@ -74,6 +74,8 @@ def process_final_dict(final_dictionary):
|
|
| 74 |
|
| 75 |
def natural_language_module(sentence):
|
| 76 |
|
|
|
|
|
|
|
| 77 |
final_dictionary = []
|
| 78 |
|
| 79 |
# identify whether the sentence is referred on earthquake events
|
|
@@ -128,6 +130,8 @@ def natural_language_module(sentence):
|
|
| 128 |
|
| 129 |
return result
|
| 130 |
|
|
|
|
|
|
|
| 131 |
|
| 132 |
|
| 133 |
|
|
|
|
| 74 |
|
| 75 |
def natural_language_module(sentence):
|
| 76 |
|
| 77 |
+
|
| 78 |
+
try:
|
| 79 |
final_dictionary = []
|
| 80 |
|
| 81 |
# identify whether the sentence is referred on earthquake events
|
|
|
|
| 130 |
|
| 131 |
return result
|
| 132 |
|
| 133 |
+
except:
|
| 134 |
+
return "\n\n=== AN UNEXPECTED ERROR HAS OCCURED. PLEASE EXECUTE AGAIN THE SCRIPT OR COMMUNICATE WITH THE DEVELOPER TEAM === \n\n"
|
| 135 |
|
| 136 |
|
| 137 |
|