Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ratio fix
Browse files
resources/app/plugins/deepmoji_plugin/sentiment.py
CHANGED
@@ -258,6 +258,8 @@ def adjust_values(data=None):
|
|
258 |
|
259 |
# amplifier
|
260 |
ratio = float(plugin_settings['amplifier_ratio'])
|
|
|
|
|
261 |
|
262 |
logger.log(f'Amplifier ratio: {ratio}')
|
263 |
hasExcMark = False
|
@@ -285,6 +287,7 @@ def adjust_values(data=None):
|
|
285 |
|
286 |
# HF
|
287 |
if (len(text_scores) <= 1):
|
|
|
288 |
ratio = 1
|
289 |
|
290 |
# final values
|
|
|
258 |
|
259 |
# amplifier
|
260 |
ratio = float(plugin_settings['amplifier_ratio'])
|
261 |
+
else:
|
262 |
+
ratio = 1.0
|
263 |
|
264 |
logger.log(f'Amplifier ratio: {ratio}')
|
265 |
hasExcMark = False
|
|
|
287 |
|
288 |
# HF
|
289 |
if (len(text_scores) <= 1):
|
290 |
+
em_angry_max = 1
|
291 |
ratio = 1
|
292 |
|
293 |
# final values
|