Skip to content

Instantly share code, notes, and snippets.

View ChristopheAmoussouvi's full-sized avatar

Christophe Amoussouvi ChristopheAmoussouvi

View GitHub Profile
@sayakpaul
sayakpaul / grade_images_with_gemini.py
Last active February 15, 2025 11:13
Shows how to use Gemini Flash 2.0 to grade images on multiple aspects like accuracy to prompt, emotional and thematic response, etc.
from google import genai
from google.genai import types
import typing_extensions as typing
from PIL import Image
import requests
import io
import json
import os