|
|
|
@ -168,10 +168,8 @@ class Dalle3:
|
|
|
|
|
# Handling exceptions and printing the errors details
|
|
|
|
|
print(
|
|
|
|
|
colored(
|
|
|
|
|
(
|
|
|
|
|
f"Error running Dalle3: {error} try optimizing your api"
|
|
|
|
|
" key and or try again"
|
|
|
|
|
),
|
|
|
|
|
f"Error running Dalle3: {error} try optimizing your api"
|
|
|
|
|
" key and or try again",
|
|
|
|
|
"red",
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
@ -233,10 +231,8 @@ class Dalle3:
|
|
|
|
|
except (Exception, openai.OpenAIError) as error:
|
|
|
|
|
print(
|
|
|
|
|
colored(
|
|
|
|
|
(
|
|
|
|
|
f"Error running Dalle3: {error} try optimizing your api"
|
|
|
|
|
" key and or try again"
|
|
|
|
|
),
|
|
|
|
|
f"Error running Dalle3: {error} try optimizing your api"
|
|
|
|
|
" key and or try again",
|
|
|
|
|
"red",
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
@ -310,10 +306,8 @@ class Dalle3:
|
|
|
|
|
except Exception as error:
|
|
|
|
|
print(
|
|
|
|
|
colored(
|
|
|
|
|
(
|
|
|
|
|
f"Error running Dalle3: {error} try optimizing"
|
|
|
|
|
" your api key and or try again"
|
|
|
|
|
),
|
|
|
|
|
f"Error running Dalle3: {error} try optimizing"
|
|
|
|
|
" your api key and or try again",
|
|
|
|
|
"red",
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|