We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b91a12c + 5c3ea0e commit 306f8f8Copy full SHA for 306f8f8
src/dalle2/dalle2.py
@@ -82,6 +82,9 @@ def get_task_response(self, body):
82
if data["status"] == "failed":
83
print(f"Task failed: {data['status_information']}")
84
return None
85
+ if data["status"] == "rejected":
86
+ print(f"Task rejected: {data['status_information']}")
87
+ return None
88
if data["status"] == "succeeded":
89
print("🙌 Task completed!")
90
return data["generations"]["data"]
0 commit comments