Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import AutoModel
|
|
6 |
app = FastAPI()
|
7 |
|
8 |
# Load the model once when the application starts
|
9 |
-
pipe = DiffusionPipeline.from_pretrained("Norod78/caricature-portraits-blip-captions
|
10 |
|
11 |
@app.post("/generate/")
|
12 |
async def generate_image(prompt: str):
|
|
|
6 |
app = FastAPI()
|
7 |
|
8 |
# Load the model once when the application starts
|
9 |
+
pipe = DiffusionPipeline.from_pretrained("Norod78/sd15-caricature-portraits-blip-captions")
|
10 |
|
11 |
@app.post("/generate/")
|
12 |
async def generate_image(prompt: str):
|