Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import google.generativeai as genai
|
|
5 |
import gradio as gr
|
6 |
|
7 |
# Configure the Gemini API
|
8 |
-
api_key = os.getenv("
|
9 |
if not api_key:
|
10 |
raise ValueError("GEMINI_API_KEY not found. Please set it in your environment variables.")
|
11 |
genai.configure(api_key=api_key)
|
|
|
5 |
import gradio as gr
|
6 |
|
7 |
# Configure the Gemini API
|
8 |
+
api_key = os.getenv("GOOGLE_API_KEY")
|
9 |
if not api_key:
|
10 |
raise ValueError("GEMINI_API_KEY not found. Please set it in your environment variables.")
|
11 |
genai.configure(api_key=api_key)
|