From 48df71addbbeebfd39a6357ad3ec963c2f5cc99d Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Fri, 28 Feb 2025 21:13:22 +0100 Subject: [PATCH] mod allegro --- allegro.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/allegro.py b/allegro.py index e239426..48a053d 100644 --- a/allegro.py +++ b/allegro.py @@ -26,18 +26,19 @@ def fetch_documents(): response = collection.query.fetch_objects() documents = [] for o in response.objects: - print(o.properties.get("fileName", "unknown_file")) - #file_name = item.get("fileName", "unknown_file") - #content = item.get("content", "") - #if content: - # documents.append(f"fileName: {file_name}, content: {content}") - # print(f"fileName: {file_name}") - #return documents + file_name = o.properties.get("fileName", "unknown_file") + content = o.properties.get("content", "") + if content: + documents.append(f"fileName: {file_name}, content: {content}") + print(f"fileName: {file_name}") + return documents #return documents fetch_documents() +client.close() + """ # 3️⃣ Inicjalizacja modelu model_name = "allegro/multislav-5lang"