DEV Community

Raunaq Chawhan
Raunaq Chawhan

Posted on

1 1 1

PicsTweakr

This is a submission for the Cloudflare AI Challenge.

What I Built

I've tried to come up with a simple fun app as this was my first interaction with using AI.

Demo

The app can be tested out at: https://picstweakr.pages.dev/

Image description

My Code

The code can be found here: https://github.com/RaunaqChawhan/picstweakr

Journey

The journey of building this app was fun. It was more of exploring the various models provided by Cloudfare and it was very well documented on how to utilize the models.
This app basically requires a user to upload an image and based on that image, the various AI models will generate images, generate a description and a creative short story of that image.

Multiple Models and/or Triple Task Types
I've used the following models to come up with the app:
"@cf/unum/uform-gen2-qwen-500m" - this model will provide a detailed description of the image uploaded.

"@cf/lykon/dreamshaper-8-lcm" - this model will generate new images based on description.

"@cf/meta/llama-2-7b-chat-fp16" - this model will create a short creative story based on the description of the original image uploaded by user.

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