🔧 Fixed generation scripts - proper image saving, gemini-1.5-flash model, full logging

This commit is contained in:
2025-12-31 10:17:19 +01:00
parent 56bd968c6d
commit fddc9021bb
2 changed files with 108 additions and 46 deletions

View File

@@ -43,7 +43,7 @@ def generate_image(prompt: str, output_path: Path, log_file):
log_file.write(f"{time.strftime('%H:%M:%S')} - Generating {output_path.name}\n")
log_file.flush()
model = genai.GenerativeModel('gemini-2.0-flash-exp')
model = genai.GenerativeModel('gemini-1.5-flash')
response = model.generate_content([prompt])
if hasattr(response, '_result') and response._result.candidates: