Katieearl1513 commited on
Commit
8da9adf
·
verified ·
1 Parent(s): 20845a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,9 +1,8 @@
1
  import gradio as gr
2
  import google.generativeai as genai
3
- from google.colab import userdata
4
 
5
  # Configure Gemini AI
6
- api_key = userdata.get('secretName') # Fetch the Gemini API key securely
7
  genai.configure(api_key=api_key)
8
 
9
  # Define the model with desired generation configuration
 
1
  import gradio as gr
2
  import google.generativeai as genai
 
3
 
4
  # Configure Gemini AI
5
+ api_key = os.getenv("GEMINI_API") # Fetch the Gemini API key securely
6
  genai.configure(api_key=api_key)
7
 
8
  # Define the model with desired generation configuration