Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ import google.generativeai as genai
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
|
5 |
-
GOOGLE_API_KEY=os.
|
|
|
6 |
genai.configure(api_key=GOOGLE_API_KEY)
|
7 |
|
8 |
model = genai.GenerativeModel('gemini-1.5-flash')
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
|
5 |
+
GOOGLE_API_KEY=os.environ["GOOGLE_API_KEY"]
|
6 |
+
|
7 |
genai.configure(api_key=GOOGLE_API_KEY)
|
8 |
|
9 |
model = genai.GenerativeModel('gemini-1.5-flash')
|