From cc976289024e2b95ce35f6700f8e183f4ecdd4c5 Mon Sep 17 00:00:00 2001 From: shuaikangzhou <863909694@qq.com> Date: Thu, 16 Nov 2023 00:06:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=83=85=E6=84=9F=E5=88=86?= =?UTF-8?q?=E6=9E=90=E6=95=B0=E5=80=BC=E6=98=BE=E7=A4=BA=E8=BF=87=E9=95=BF?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 28 +++++++++++----------------- app/Ui/contact/emotion/emotion.py | 1 + 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d2bda6c..3d29d56 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,14 +4,8 @@ - @@ -660,7 +653,8 @@ - diff --git a/app/Ui/contact/emotion/emotion.py b/app/Ui/contact/emotion/emotion.py index f0ede65..c33a4e8 100644 --- a/app/Ui/contact/emotion/emotion.py +++ b/app/Ui/contact/emotion/emotion.py @@ -32,6 +32,7 @@ def emotion_analysis(wxid): emotions.append(s / len(messages)) emotions = np.array(emotions) emotions = np.around(emotions, 3) * 100 + emotions = np.around(emotions, 1) return dates, emotions