generate-image-from-text

所属分类:模式识别(视觉/语音等)
开发工具:TypeScript
文件大小:0KB
下载次数:2
上传日期:2023-10-07 20:53:37
上 传 者sh-1993
说明:  使用稳定性AI生成文本到图像,
(Uses Stability AI to generate text to image,)

文件列表:
.DS_Store (6148, 2023-10-09)
app/ (0, 2023-10-09)
app/.DS_Store (6148, 2023-10-09)
app/.eslintrc.json (429, 2023-10-09)
app/.prettierrc.json (105, 2023-10-09)
app/next-env.d.ts (201, 2023-10-09)
app/next.config.js (118, 2023-10-09)
app/package-lock.json (305379, 2023-10-09)
app/package.json (659, 2023-10-09)
app/public/ (0, 2023-10-09)
app/public/favicon.jpg (85194, 2023-10-09)
app/src/ (0, 2023-10-09)
app/src/api/ (0, 2023-10-09)
app/src/api/index.ts (476, 2023-10-09)
app/src/components/ (0, 2023-10-09)
app/src/components/GeneratorComponent.tsx (1438, 2023-10-09)
app/src/components/PageLayout.tsx (1068, 2023-10-09)
app/src/components/forms/ (0, 2023-10-09)
app/src/components/forms/TextToImageForm.tsx (949, 2023-10-09)
app/src/components/outputs/ (0, 2023-10-09)
app/src/components/outputs/GeneratedImageDisplay.tsx (642, 2023-10-09)
app/src/data.ts (2507854, 2023-10-09)
app/src/pages/ (0, 2023-10-09)
app/src/pages/_app.tsx (890, 2023-10-09)
app/src/pages/index.tsx (399, 2023-10-09)
app/src/styles/ (0, 2023-10-09)
app/src/styles/globals.css (25, 2023-10-09)
app/src/types.ts (54, 2023-10-09)
app/tsconfig.json (513, 2023-10-09)
backend/ (0, 2023-10-09)
backend/.env.example (17, 2023-10-09)
backend/config.py (182, 2023-10-09)
backend/main.py (862, 2023-10-09)
backend/requirements.txt (711, 2023-10-09)
backend/schemas.py (101, 2023-10-09)
backend/services.py (1149, 2023-10-09)
backend/test_helpers.py (513, 2023-10-09)
... ...

# Getting Started This project converts any text prompt you submit to an image. This project has 2 parts: 1. app: Next.js frontend 2. backend: FastApi backend that uses [Stability AI api](https://platform.stability.ai/) to do the text to image conversion ## Setup Steps 0. Setting up environment ```bash cd backend cp .env.example .env ``` Fill in the environment variables shared on email. Save file 1. Backend This project uses Python 3.9.12 within virtual environment. ```bash cd backend python3 -m venv venv source venv/bin/activate pip install -r requirements.txt uvicorn main:app --reload ``` Note: Backend runs on port 8000. If there is another service using the port, please free it up before you start this app. 2. Frontend This project is written on Node v16.16.0. You may use nvm to switch to this distribution ```bash nvm use v16.16.0 cd app npm run dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. ## Backend Tests ```bash cd backend pytest ```

近期下载者

相关文件


收藏者