AezersX commited on
Commit
f002125
·
1 Parent(s): 39aa1b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -6,7 +6,7 @@ from diffusers import StableDiffusionPipeline
6
  import torch
7
 
8
  load_dotenv()
9
- openai.api_key = os.getenv("OPENAI_API_KEY")
10
 
11
  #function to generate AI based images using OpenAI Dall-E
12
  def generate_images_using_openai(text):
@@ -27,7 +27,8 @@ def generate_images_using_huggingface_diffusers(text):
27
  choice = st.sidebar.selectbox("Select your Models", ["Home", "DALL-E", "Stable Diffusion"])
28
 
29
  if choice == "Home":
30
- st.title("AI Image Generation App")
 
31
  with st.expander("About the App"):
32
  st.write("This is a simple image generation app that uses AI to generates images from text prompt.")
33
 
 
6
  import torch
7
 
8
  load_dotenv()
9
+ openai.api_key = <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>
10
 
11
  #function to generate AI based images using OpenAI Dall-E
12
  def generate_images_using_openai(text):
 
27
  choice = st.sidebar.selectbox("Select your Models", ["Home", "DALL-E", "Stable Diffusion"])
28
 
29
  if choice == "Home":
30
+ st.title("AI Image Gen")
31
+ st.write("By AezersX")
32
  with st.expander("About the App"):
33
  st.write("This is a simple image generation app that uses AI to generates images from text prompt.")
34