Ujeshhh commited on
Commit
3acb186
·
verified ·
1 Parent(s): 2903d39

Update app.py

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