DEV Community

Mohamed El Laithy
Mohamed El Laithy

Posted on

AI Chief

This is a submission for the Cloudflare AI Challenge.

What I Built

I built an AI-powered cooking assistant called Ai-Chief. Ai-Chief helps users discover recipes, provides ingredient lists, and calculates the approximate calorie content of dishes. Users can simply upload the image of a dish, and Ai-Chief will generate step-by-step instructions on how to prepare it, list all the required ingredients, and provide calories informations.

Demo

View on Demo

My Code

View on GitHub

Journey

In developing Ai-Chief, I utilized Cloudflare APIs to interact with AI models for recipe retrieval and calorie calculation. I also used Flask to build this project. I'm particularly proud of how seamlessly Ai-Chief provides cooking assistance to users based on their input

Multiple Models and/or Triple Task Types

Type Model Name
Image-to-Text uform-gen2-qwen-500m
Summarization bart-large-cnn
Text Generation openchat-3.5-0106
Translation m2m100-1.2b

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry 👀

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay