Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,9 @@ import gradio as gr # Import Gradio for the interface
|
|
7 |
|
8 |
#Function to generate image
|
9 |
def generate_image(prompt, height=512, width=512):
|
10 |
-
|
|
|
|
|
11 |
HUGGINGFACE_API_KEY = os.getenv("HUGGINGFACE_API_KEY")
|
12 |
|
13 |
if not HUGGINGFACE_API_KEY:
|
|
|
7 |
|
8 |
#Function to generate image
|
9 |
def generate_image(prompt, height=512, width=512):
|
10 |
+
|
11 |
+
model_id = "CompVis/stable-diffusion-v1-4"
|
12 |
+
|
13 |
HUGGINGFACE_API_KEY = os.getenv("HUGGINGFACE_API_KEY")
|
14 |
|
15 |
if not HUGGINGFACE_API_KEY:
|