Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import gradio as gr
|
|
6 |
import base64
|
7 |
import os
|
8 |
|
|
|
9 |
|
10 |
def generate_image(prompt):
|
11 |
|
@@ -18,7 +19,6 @@ def generate_image(prompt):
|
|
18 |
Returns:
|
19 |
An image.
|
20 |
"""
|
21 |
-
api_key = os.getenv("GEMINI_API_KEY")
|
22 |
|
23 |
client = genai.Client(api_key=api_key)
|
24 |
|
|
|
6 |
import base64
|
7 |
import os
|
8 |
|
9 |
+
api_key = os.getenv("GEMINI_API_KEY")
|
10 |
|
11 |
def generate_image(prompt):
|
12 |
|
|
|
19 |
Returns:
|
20 |
An image.
|
21 |
"""
|
|
|
22 |
|
23 |
client = genai.Client(api_key=api_key)
|
24 |
|