Spaces:
Running
Running
Commit
•
b427e12
1
Parent(s):
6903841
chore: Update kandinsky_inpainting_inference endpoint URL
Browse files- ui/README.md +6 -0
- ui/__pycache__/ui.cpython-310.pyc +0 -0
- ui/__pycache__/ui.cpython-311.pyc +0 -0
- ui/requirements.txt +0 -0
- ui/ui.py +2 -2
ui/README.md
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: PicPilot-UI
|
3 |
+
app_file: ui.py
|
4 |
+
sdk: gradio
|
5 |
+
sdk_version: 4.36.1
|
6 |
+
---
|
ui/__pycache__/ui.cpython-310.pyc
DELETED
Binary file (3.72 kB)
|
|
ui/__pycache__/ui.cpython-311.pyc
DELETED
Binary file (8.05 kB)
|
|
ui/requirements.txt
ADDED
File without changes
|
ui/ui.py
CHANGED
@@ -8,7 +8,7 @@ from io import BytesIO
|
|
8 |
|
9 |
sdxl_inference_endpoint = 'https://vikramsingh178-picpilot-server.hf.space/api/v1/product-diffusion/sdxl_v0_lora_inference'
|
10 |
sdxl_batch_inference_endpoint = 'https://vikramsingh178-picpilot-server.hf.space/api/v1/product-diffusion/sdxl_v0_lora_inference/batch'
|
11 |
-
kandinsky_inpainting_inference = 'https://vikramsingh178-picpilot-server.hf.space/api/v1/product-diffusion/
|
12 |
|
13 |
# Define the InpaintingRequest model
|
14 |
class InputRequest(BaseModel):
|
@@ -39,7 +39,7 @@ async def generate_sdxl_lora_image(prompt, negative_prompt, num_inference_steps,
|
|
39 |
).dict()
|
40 |
|
41 |
response = requests.post(sdxl_inference_endpoint, json=payload)
|
42 |
-
response = response
|
43 |
url = response['url']
|
44 |
image = load_image(url)
|
45 |
return image
|
|
|
8 |
|
9 |
sdxl_inference_endpoint = 'https://vikramsingh178-picpilot-server.hf.space/api/v1/product-diffusion/sdxl_v0_lora_inference'
|
10 |
sdxl_batch_inference_endpoint = 'https://vikramsingh178-picpilot-server.hf.space/api/v1/product-diffusion/sdxl_v0_lora_inference/batch'
|
11 |
+
kandinsky_inpainting_inference = 'https://vikramsingh178-picpilot-server.hf.space/api/v1/product-diffusion/inpainting'
|
12 |
|
13 |
# Define the InpaintingRequest model
|
14 |
class InputRequest(BaseModel):
|
|
|
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)
|
45 |
return image
|