Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
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 |
-
|
123 |
-
|
|
|
|
|
|
|
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
|