Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check image appropriateness using the free Gemini API #185

Open
brodmo opened this issue Feb 26, 2025 · 1 comment
Open

Check image appropriateness using the free Gemini API #185

brodmo opened this issue Feb 26, 2025 · 1 comment
Assignees
Labels
Backend The issue lies in the data presented in the App or in the server enhancement New feature or request

Comments

@brodmo
Copy link

brodmo commented Feb 26, 2025

Images are often unrelated to the actual food.

The images along with the description of the food could be sent to the the free Gemini 2.0 Flash API to check whether they match. If they don't, reject the image. Perhaps the reason the LLM provides could be shown to the user.

From my testing, Gemini is reasonably good at this task. I used the following prompt, which could be further refined: Bildet das Bild folgendes ab: "<Beschreibung des Gerichts>"? Antworte mit "Ja" oder "Nein", gefolgt von einer kurzen Begründung.

The rate limit is 15 requests per minute and 1500 requests per day. I assume this should be plenty.

@worldofjoni worldofjoni added enhancement New feature or request Backend The issue lies in the data presented in the App or in the server labels Feb 26, 2025
@worldofjoni
Copy link
Member

Thank you for this issue, we will look into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend The issue lies in the data presented in the App or in the server enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants