From 531c2f3693c8c79de4e2220b74effd542575a387 Mon Sep 17 00:00:00 2001 From: Floke Date: Sat, 29 Mar 2025 21:28:39 +0000 Subject: [PATCH] Bugfix Ergebnisse wurden alle in eine Zelle ausgegeben. sollten jetzt in mehrere Zellen ausgegeben w --- brancheneinstufung.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brancheneinstufung.py b/brancheneinstufung.py index 5b2d89e1..9baff0ac 100644 --- a/brancheneinstufung.py +++ b/brancheneinstufung.py @@ -135,7 +135,8 @@ def classify_company(row): messages=[system_prompt, user_prompt], temperature=0 ) - parts = [v.strip().strip('"') for v in response.choices[0].message.content.strip().split(";", 7)] + text = response.choices[0].message.content.strip() + parts = [v.strip().strip('"') for v in text.split(";")] while len(parts) < 8: parts.append("k.A.") return parts