Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit d98cd11

Browse files
committed
Update dev and stable version
Update dev and stable version ImageGen will print
1 parent 8579579 commit d98cd11

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dev.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "re_edge_gpt_dev"
9-
version = "0.0.06"
9+
version = "0.0.07"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "re_edge_gpt"
9-
version = "0.0.05"
9+
version = "0.0.06"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]

re_edge_gpt/image_genearation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get_images(self, prompt: str) -> list:
141141
if response.status_code != 302:
142142
if self.debug_file:
143143
self.debug(f"ERROR: {error_redirect}")
144-
print(f"ERROR: {response.text}".encode("utf-8"))
144+
print(f"ERROR: {response.text.encode('utf-8')}")
145145
raise Exception(error_redirect)
146146
# Get redirect URL
147147
redirect_url = response.headers["Location"].replace("&nfy=1", "")
@@ -314,7 +314,7 @@ async def get_images(self, prompt: str) -> list:
314314
timeout=200,
315315
)
316316
if response.status_code != 302:
317-
print(f"ERROR: {response.text}")
317+
print(f"ERROR: {response.text.encode('utf-8')}")
318318
raise Exception("Redirect failed")
319319
# Get redirect URL
320320
redirect_url = response.headers["Location"].replace("&nfy=1", "")

0 commit comments

Comments
 (0)