Skip to content

Commit f7814ef

Browse files
authored
Merge pull request #5 from raiyanyahya/version-1
Version 1
2 parents e77f2bf + e484bcd commit f7814ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dallecli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def generate_image(prompt, size, filter, iterations, save_path=None):
4646
if not path.exists(path.dirname(save_path)):
4747
makedirs(path.dirname(save_path))
4848
image.save(save_path)
49-
except openai.error.AuthenticationError():
50-
print("🔒 Incorrect API key provided.")
49+
except openai.error.AuthenticationError:
50+
print("🔒 Authentication Failed. Try with a fresh API key.")
5151
except Exception:
5252
print("❌ Failed to generate image. Please try again with a different prompt.")
5353

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
name="dallecli",
1313
python_requires=">3.5",
1414
options={"bdist_wheel": {"universal": "1"}},
15-
version="0.4.0",
15+
version="1.0.0",
1616
description="A command line application to help wrap the OpenAI Dalle api and other utilities.",
1717
long_description=long_description,
1818
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)