ahmadmac commited on
Commit
b4140d5
·
verified ·
1 Parent(s): fa8551e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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.get('GOOGLE_API_KEY')
 
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')