mod allegro
This commit is contained in:
parent
29d5fe0d58
commit
48df71addb
15
allegro.py
15
allegro.py
|
|
@ -26,18 +26,19 @@ def fetch_documents():
|
||||||
response = collection.query.fetch_objects()
|
response = collection.query.fetch_objects()
|
||||||
documents = []
|
documents = []
|
||||||
for o in response.objects:
|
for o in response.objects:
|
||||||
print(o.properties.get("fileName", "unknown_file"))
|
file_name = o.properties.get("fileName", "unknown_file")
|
||||||
#file_name = item.get("fileName", "unknown_file")
|
content = o.properties.get("content", "")
|
||||||
#content = item.get("content", "")
|
if content:
|
||||||
#if content:
|
documents.append(f"fileName: {file_name}, content: {content}")
|
||||||
# documents.append(f"fileName: {file_name}, content: {content}")
|
print(f"fileName: {file_name}")
|
||||||
# print(f"fileName: {file_name}")
|
return documents
|
||||||
#return documents
|
|
||||||
#return documents
|
#return documents
|
||||||
|
|
||||||
|
|
||||||
fetch_documents()
|
fetch_documents()
|
||||||
|
|
||||||
|
client.close()
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# 3️⃣ Inicjalizacja modelu
|
# 3️⃣ Inicjalizacja modelu
|
||||||
model_name = "allegro/multislav-5lang"
|
model_name = "allegro/multislav-5lang"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue