Pendrokar commited on
Commit
1bea690
Β·
1 Parent(s): 431fb1c

revert run_model setting

Browse files
resources/app/plugins/deepmoji_plugin/sentiment.py CHANGED
@@ -119,8 +119,11 @@ def fetch_text(data=None):
119
  pass
120
 
121
  if (
122
- plugin_settings["load_deepmoji_model"]=="false"
123
- or plugin_settings["load_deepmoji_model"]==False
 
 
 
124
  ):
125
  logger.log("DeepMoji model skipped")
126
  return
 
119
  pass
120
 
121
  if (
122
+ (
123
+ plugin_settings["load_deepmoji_model"]=="false"
124
+ or plugin_settings["load_deepmoji_model"]==False
125
+ )
126
+ and data["pluginsContext"]["mantella_settings"]["run_model"]==False
127
  ):
128
  logger.log("DeepMoji model skipped")
129
  return