Ujeshhh commited on
Commit
2903d39
·
verified ·
1 Parent(s): 42675a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
3
  from PIL import Image
4
 
5
  # Set up Gemini API key
6
- genai.configure(api_key="AIzaSyDnx_qUjGTFG1pv1otPUhNt_bGGv14aMDI") # Replace with your API key
7
-
8
  def predict_rat(image):
9
  """Predict if the uploaded image contains a rat using Google Gemini Pro Vision API."""
10
 
 
3
  from PIL import Image
4
 
5
  # Set up Gemini API key
6
+ genai.configure(api_key="GEMINI_API_KEY") # Replace with your API key
7
+ GEMINI_API_KEY = os.getenv('GEMINI_API_KEY')
8
  def predict_rat(image):
9
  """Predict if the uploaded image contains a rat using Google Gemini Pro Vision API."""
10