AezersX
commited on
Commit
·
0abc331
1
Parent(s):
68305b4
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,9 @@ from diffusers import StableDiffusionPipeline
|
|
6 |
import torch
|
7 |
|
8 |
load_dotenv()
|
9 |
-
|
|
|
|
|
10 |
|
11 |
#function to generate AI based images using OpenAI Dall-E
|
12 |
def generate_images_using_openai(text):
|
|
|
6 |
import torch
|
7 |
|
8 |
load_dotenv()
|
9 |
+
apikey = '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'
|
10 |
+
#openai.api_key = apikey
|
11 |
+
os.environ['OPENAI_API_KEY'] = apikey
|
12 |
|
13 |
#function to generate AI based images using OpenAI Dall-E
|
14 |
def generate_images_using_openai(text):
|