Update handler.py
Browse files- handler.py +4 -2
handler.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
from fastapi import FastAPI, HTTPException, UploadFile, File
|
| 2 |
from pydantic import BaseModel
|
| 3 |
import torch
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
|
|
|
|
| 1 |
from fastapi import FastAPI, HTTPException, UploadFile, File
|
| 2 |
from pydantic import BaseModel
|
| 3 |
import torch
|
| 4 |
+
import diffusers
|
| 5 |
+
|
| 6 |
+
# Import the custom pipeline
|
| 7 |
+
from models.pipeline_stable_diffusion_xl_instantid_full import StableDiffusionXLInstantIDPipeline
|
| 8 |
|
| 9 |
app = FastAPI()
|
| 10 |
|