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