modified: .gitignore

modified:   ai-worker/worker.py
	modified:   server-app/main.go
This commit is contained in:
hubble_dubble
2026-01-26 01:04:58 +01:00
parent 3667c678e4
commit 4e235c2f28
3 changed files with 4 additions and 11 deletions

View File

@@ -161,13 +161,6 @@ def main():
result = generate_image(prompt)
if result:
data_uri, img_bytes = result
filename = f"{safe_filename(article_id)}.png"
out_path = IMAGE_OUTPUT_DIR / filename
try:
out_path.write_bytes(img_bytes)
logging.info("Bild gespeichert unter %s", out_path)
except Exception as e:
logging.error("Konnte Bild nicht speichern (%s): %s", out_path, e)
update_image(cur, aid, data_uri)
logging.info("Bild gesetzt für Artikel %s", aid)
else: