Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
run_deepmoji condition fixed
Browse files
resources/app/plugins/deepmoji_plugin/sentiment.py
CHANGED
@@ -86,9 +86,11 @@ def fetch_text(data=None):
|
|
86 |
pass
|
87 |
|
88 |
if (
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
92 |
):
|
93 |
logger.log("DeepMoji model skipped")
|
94 |
return
|
|
|
86 |
pass
|
87 |
|
88 |
if (
|
89 |
+
(
|
90 |
+
plugin_settings["load_deepmoji_model"]=="false"
|
91 |
+
or plugin_settings["load_deepmoji_model"]==False
|
92 |
+
)
|
93 |
+
and data["pluginsContext"]["mantella_settings"]["run_model"]==False
|
94 |
):
|
95 |
logger.log("DeepMoji model skipped")
|
96 |
return
|