Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
import google.generativeai as genai
|
4 |
|
5 |
# Configure Gemini API
|
6 |
-
GEMINI_API_KEY =
|
7 |
genai.configure(api_key=GEMINI_API_KEY)
|
8 |
|
9 |
# Create the model with the same configuration as the sample
|
|
|
3 |
import google.generativeai as genai
|
4 |
|
5 |
# Configure Gemini API
|
6 |
+
GEMINI_API_KEY = os.environ["GEMINI_API_KEY"]
|
7 |
genai.configure(api_key=GEMINI_API_KEY)
|
8 |
|
9 |
# Create the model with the same configuration as the sample
|