para-lost commited on
Commit
3650e5a
·
1 Parent(s): 50b64c4
Files changed (1) hide show
  1. 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