| from publisher.ai.gemini_client import get_model | |
| def generate_thumbnail(video_path): | |
| model = get_model() | |
| prompt = """ | |
| Suggest BEST thumbnail concept: | |
| - facial emotion | |
| - text overlay | |
| - color style | |
| """ | |
| result = model.generate_content(prompt) | |
| return { | |
| "thumbnail_strategy": result.text | |
| } |