A Simple React WebApp and a FastAPI backend that uses Stable Diffusion Pipelines to generate images.

create 'auth_token.py' in /api and add variable "auth_token" with your huggingface token.
uvicorn api:app --reloadnpm start GET /generate
| Parameter | Type | Description |
|---|---|---|
prompt | string | Required. The text prompt of an image |
GET /selectmodel
| Parameter | Type | Description |
|---|---|---|
model | string | Required. The model to be used |
25 commits
JavaScript
60.0%
Python
23.9%
HTML
16.1%
A Simple React WebApp and a FastAPI backend that uses Stable Diffusion Pipelines to generate images.

create 'auth_token.py' in /api and add variable "auth_token" with your huggingface token.
uvicorn api:app --reloadnpm start GET /generate
| Parameter | Type | Description |
|---|---|---|
prompt | string | Required. The text prompt of an image |
GET /selectmodel
| Parameter | Type | Description |
|---|---|---|
model | string | Required. The model to be used |
25 commits
JavaScript
60.0%
Python
23.9%
HTML
16.1%