Spaces:
Runtime error
Runtime error
Commit
•
d501938
1
Parent(s):
112b9b4
chore: Update API endpoints to use HTTPS
Browse files- ui/__pycache__/ui.cpython-311.pyc +0 -0
- ui/ui.py +4 -4
ui/__pycache__/ui.cpython-311.pyc
CHANGED
Binary files a/ui/__pycache__/ui.cpython-311.pyc and b/ui/__pycache__/ui.cpython-311.pyc differ
|
|
ui/ui.py
CHANGED
@@ -6,9 +6,9 @@ from io import BytesIO
|
|
6 |
|
7 |
|
8 |
|
9 |
-
sdxl_inference_endpoint = '
|
10 |
-
sdxl_batch_inference_endpoint = '
|
11 |
-
kandinsky_inpainting_inference = '
|
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
|
|
|
6 |
|
7 |
|
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/kandinskyv2.2_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
|
43 |
url = response['url']
|
44 |
image = load_image(url)
|
45 |
return image
|