Spaces:
Runtime error
Runtime error
VikramSingh178
commited on
Commit
•
47b9b86
1
Parent(s):
4d01864
chore: Update import statement for InpaintingRequest in painting.py and refactor code to use shared BaseModel for Painting and InpaintingRequest classes
Browse filesFormer-commit-id: 35858fb2cd2748e9c2568ba81e390b4db6b6c8ef [formerly 3a2b8f80b9646a8288e1e0ab6a22beb8581b091d]
Former-commit-id: a6bd40c2472797c78735b414960569599d1a9a21
- api/models/__pycache__/painting.cpython-310.pyc +0 -0
- api/routers/__pycache__/painting.cpython-310.pyc +0 -0
- api/routers/__pycache__/sdxl_text_to_image.cpython-310.pyc +0 -0
- api/routers/painting.py +1 -1
- scripts/__pycache__/utils.cpython-310.pyc +0 -0
- ui/__pycache__/ui.cpython-310.pyc +0 -0
- ui/ui.py +1 -1
api/models/__pycache__/painting.cpython-310.pyc
ADDED
Binary file (509 Bytes). View file
|
|
api/routers/__pycache__/painting.cpython-310.pyc
ADDED
Binary file (4.6 kB). View file
|
|
api/routers/__pycache__/sdxl_text_to_image.cpython-310.pyc
ADDED
Binary file (6.13 kB). View file
|
|
api/routers/painting.py
CHANGED
@@ -4,7 +4,7 @@ from fastapi import APIRouter, File, UploadFile, HTTPException
|
|
4 |
from pydantic import BaseModel
|
5 |
from PIL import Image
|
6 |
from io import BytesIO
|
7 |
-
from models import InpaintingRequest
|
8 |
import uuid
|
9 |
from inpainting_pipeline import AutoPaintingPipeline
|
10 |
from utils import pil_to_s3_json, ImageAugmentation
|
|
|
4 |
from pydantic import BaseModel
|
5 |
from PIL import Image
|
6 |
from io import BytesIO
|
7 |
+
from models.painting import InpaintingRequest
|
8 |
import uuid
|
9 |
from inpainting_pipeline import AutoPaintingPipeline
|
10 |
from utils import pil_to_s3_json, ImageAugmentation
|
scripts/__pycache__/utils.cpython-310.pyc
CHANGED
Binary files a/scripts/__pycache__/utils.cpython-310.pyc and b/scripts/__pycache__/utils.cpython-310.pyc differ
|
|
ui/__pycache__/ui.cpython-310.pyc
ADDED
Binary file (3.72 kB). View file
|
|
ui/ui.py
CHANGED
@@ -38,7 +38,7 @@ async def generate_sdxl_lora_image(prompt, negative_prompt, num_inference_steps,
|
|
38 |
mode=mode
|
39 |
).dict()
|
40 |
|
41 |
-
response =
|
42 |
response = response.json()
|
43 |
url = response['url']
|
44 |
image = load_image(url)
|
|
|
38 |
mode=mode
|
39 |
).dict()
|
40 |
|
41 |
+
response = requests.post(sdxl_inference_endpoint, json=payload)
|
42 |
response = response.json()
|
43 |
url = response['url']
|
44 |
image = load_image(url)
|