modified: .gitignore
modified: ai-worker/worker.py modified: server-app/main.go
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user