|
@@ -21,7 +21,7 @@ image_path = "D:/Temp/ComfyUI_windows_portable_nvidia/ComfyUI_windows_portable/C
|
|
|
|
|
|
def update_ai_image_task_status(row_id, new_status):
|
|
|
# Define the URL for the API endpoint
|
|
|
- url = "{}/tasks/ai-image/update-status".format(api_path)
|
|
|
+ url = "{}//creation-module/ai-image/update-status".format(api_path)
|
|
|
|
|
|
# Create a JSON payload
|
|
|
payload = {"row_id": row_id, "new_status": new_status}
|
|
@@ -41,7 +41,7 @@ def update_ai_image_task_status(row_id, new_status):
|
|
|
|
|
|
def get_ai_image_task(row_id):
|
|
|
# Define the URL for the API endpoint
|
|
|
- url = "{}/tasks/ai-image/{}".format(api_path, row_id)
|
|
|
+ url = "{}/api/creation-module/ai-image/{}".format(api_path, row_id)
|
|
|
print("Constructed URL:", url) # Print the URL for debugging
|
|
|
|
|
|
# Make a GET request to the API endpoint
|
|
@@ -64,7 +64,7 @@ def find_image_and_convert_to_base64(image_path):
|
|
|
return image_base64
|
|
|
|
|
|
def upload_image_to_anvil(row_id, image_base64):
|
|
|
- url = "{}/test-3".format(api_path)
|
|
|
+ url = "{}/api/creation-module/ai-image/upload-preview".format(api_path)
|
|
|
payload = {"row_id": row_id, "image_base64": image_base64}
|
|
|
response = requests.post(url, json=payload)
|
|
|
if response.status_code == 200:
|