Coder Social home page Coder Social logo

wuyasong / imagetoprompt-ai Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 6.0 125 KB

Turn your images into detailed and descriptive text prompts with AI

Home Page: https://imagetoprompt.club

License: MIT License

TypeScript 94.72% JavaScript 1.58% CSS 3.71%
ai imagetotext prompt-generator prompts webui

imagetoprompt-ai's Introduction

Image To Prompt AI

Image To Prompt AI is an open source project that allows users to upload images and generate text prompts based on the images, The project generates text prompt by replicate API, featuring easy one-click website deployment.

visit it ☞: imagetoprompt.club

Credit to

  • NextJS 14 App Router
  • Next-Auth for user auth
  • cloudflare r2 for image storage
  • Prisma ORM + postgres for data processing
  • TailwindCSS for page building
  • Replicate API for generator prompt

Quick Started

Deploy on Vercel (Don't forget to setup env)

Deploy with Vercel

1. Clone project

git clone https://github.com/wuyasong/imagetoprompt-ai.git

2. Install dependencies

cd imagetoprompt-ai
pnpm i

3. Init database

create your database use local postgres or supabase

create tables and migrate:

npx prisma generate
prisma migrate dev

4. copy .env.example and rename it to .env

GOOGLE_ID=
GOOGLE_SECRET=
NODE_ENV=development

GITHUB_ID=
GITHUB_SECRET=

EMAIL_SERVER=
EMAIL_FROM=

NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=

REPLICATE_API_URL=https://api.replicate.com/v1/predictions
REPLICATE_API_TOKEN=
REPLICATE_API_VERSION=


R2_ACCOUNT_ID=
R2_BUCKET=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_DOMAIN_URL=


POSTGRES_DATABASE="postgres"
POSTGRES_HOST="localhost"
POSTGRES_PASSWORD="xxxxx"
POSTGRES_PRISMA_URL="postgres://postgres:xxxxx@localhost:5432/localdb"
POSTGRES_URL="postgres://postgres:xxxxx@localhost:5432/localdb"
POSTGRES_URL_NON_POOLING="postgres://postgres:xxxxx@localhost:5432/localdb"
POSTGRES_URL_NO_SSL="postgres://postgres:xxxxx@localhost:5432/localdb"
POSTGRES_USER="postgres"

5. Run it

pnpm dev

6. open http://localhost:3000 for preview

imagetoprompt.club

Link Me

Twitter: https://x.com/wuyasong

if this project is helpful to you, buy me a coffee.

"Buy Me A Coffee"

imagetoprompt-ai's People

Contributors

wuyasong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

imagetoprompt-ai's Issues

imagetoprompt.club - Application error a client-side exception has occurred

When trying to access the imagetoprompt.club website, a black screen is displayed with the message "Application error a client-side exception has occurred" and a suggestion to check the browser console for details.

Browser Console:

The browser console shows several JavaScript errors, including:

TypeError: can't access property 'secrets', e is null

Additional Information:

I have AdGuard installed on my computer.
I tried disabling AdGuard and whitelisting the site, but it didn't help.
Clearing browser cache and cookies also did not solve the problem.

Error Screenshot:

изображение

Browser Version:

[Firefox Browser Nighty 128.0a1 (2024-05-30) (64-bit)]

Please help me to solve this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.