Spaces:
Sleeping
Sleeping
from fastapi import FastAPI | |
app = FastAPI() | |
def read_root(): | |
return {"Hello": "World!"} | |
def generate_image(input: str): | |
model = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5") | |
return {"image": "test", "input": input} |