Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -179,7 +179,7 @@ causative_verb = ['affect', 'influence', 'increase', 'against', 'bring', 'lead',
|
|
179 |
|
180 |
# Define the callback function for the GUI
|
181 |
def CogMapAnalysis(text):
|
182 |
-
if contains_words_or_phrases(
|
183 |
result = extractor.extract(text, causative_verb)
|
184 |
formatted_result = format_results(result)
|
185 |
plot = visualize_cognitive_map(formatted_result)
|
|
|
179 |
|
180 |
# Define the callback function for the GUI
|
181 |
def CogMapAnalysis(text):
|
182 |
+
if contains_words_or_phrases(list_causalmarkers, text):
|
183 |
result = extractor.extract(text, causative_verb)
|
184 |
formatted_result = format_results(result)
|
185 |
plot = visualize_cognitive_map(formatted_result)
|