fix none clause
This commit is contained in:
@@ -58,11 +58,6 @@ class ReimagineNode():
|
||||
json=payload,
|
||||
headers={"api_token": api_key}
|
||||
)
|
||||
print("api_key" + api_key)
|
||||
print("api_url" + self.api_url)
|
||||
print("payload" + str(payload))
|
||||
|
||||
print("now")
|
||||
if response.status_code == 200:
|
||||
response_dict = response.json()
|
||||
image_response = requests.get(response_dict['result'][0]["urls"][0])
|
||||
|
||||
@@ -72,7 +72,7 @@ class Text2ImageBaseNode():
|
||||
payload["guidance_method_2"] = guidance_method_2
|
||||
payload["guidance_method_2_scale"] = guidance_method_2_scale
|
||||
payload["guidance_method_2_image_file"] = guidance_method_2_image
|
||||
if image_prompt_image != "none":
|
||||
if image_prompt_image is not "none":
|
||||
image_prompt_image = preprocess_image(image_prompt_image)
|
||||
image_prompt_image = image_to_base64(image_prompt_image)
|
||||
payload["image_prompt_mode"] = image_prompt_mode
|
||||
|
||||
Reference in New Issue
Block a user