Shahzad8515 commited on
Commit
2743781
1 Parent(s): e266c0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -2,8 +2,10 @@ import streamlit as st
2
  import google.generativeai as genai
3
  import os
4
 
 
 
 
5
  # Configure Google Gemini API
6
- export API_KEY="AIzaSyBoPRKPvsVcMZ4e7HumwGEnfXLqee_WDBo"
7
  genai.configure(api_key=os.environ["API_KEY"])
8
 
9
  # Sidebar for input questions
 
2
  import google.generativeai as genai
3
  import os
4
 
5
+ # Set the API key directly in the script (this should be done securely in a real application)
6
+ os.environ["API_KEY"] = "AIzaSyBoPRKPvsVcMZ4e7HumwGEnfXLqee_WDBo"
7
+
8
  # Configure Google Gemini API
 
9
  genai.configure(api_key=os.environ["API_KEY"])
10
 
11
  # Sidebar for input questions