Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|