Spaces:
Running
Running
update
Browse files- SlidesLib/image_gen.py +2 -2
SlidesLib/image_gen.py
CHANGED
@@ -3,8 +3,8 @@ import requests
|
|
3 |
|
4 |
class Dalle3():
|
5 |
@classmethod
|
6 |
-
def __init_dalle__(cls):
|
7 |
-
client = OpenAI()
|
8 |
return client
|
9 |
|
10 |
@classmethod
|
|
|
3 |
|
4 |
class Dalle3():
|
5 |
@classmethod
|
6 |
+
def __init_dalle__(cls, key):
|
7 |
+
client = OpenAI(api_key=key)
|
8 |
return client
|
9 |
|
10 |
@classmethod
|