Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
indent fix
Browse files
app.py
CHANGED
@@ -172,12 +172,12 @@ def predict(
|
|
172 |
use_cleanup = 0
|
173 |
|
174 |
pluginsContext = {}
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
|
182 |
data = {
|
183 |
'pluginsContext': json.dumps(pluginsContext),
|
|
|
172 |
use_cleanup = 0
|
173 |
|
174 |
pluginsContext = {}
|
175 |
+
pluginsContext["mantella_settings"] = {
|
176 |
+
"emAngry": (anger if anger > 0 else 0),
|
177 |
+
"emHappy": (happy if happy > 0 else 0),
|
178 |
+
"emSad": (sad if sad > 0 else 0),
|
179 |
+
"emSurprise": (surprise if surprise > 0 else 0)
|
180 |
+
}
|
181 |
|
182 |
data = {
|
183 |
'pluginsContext': json.dumps(pluginsContext),
|