Bugfix Ergebnisse wurden alle in eine Zelle ausgegeben. sollten jetzt in mehrere Zellen ausgegeben w
This commit is contained in:
@@ -135,7 +135,8 @@ def classify_company(row):
|
|||||||
messages=[system_prompt, user_prompt],
|
messages=[system_prompt, user_prompt],
|
||||||
temperature=0
|
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:
|
while len(parts) < 8:
|
||||||
parts.append("k.A.")
|
parts.append("k.A.")
|
||||||
return parts
|
return parts
|
||||||
|
|||||||
Reference in New Issue
Block a user