ningrumdaud commited on
Commit
4149036
·
verified ·
1 Parent(s): d611f5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(words_list, text):
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)