Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from dotenv import load_dotenv
|
|
| 12 |
# 1. SETUP API KEY
|
| 13 |
# ----------------
|
| 14 |
load_dotenv()
|
| 15 |
-
api_key = os.getenv("
|
| 16 |
# Configure the Google AI library
|
| 17 |
genai.configure(api_key=api_key)
|
| 18 |
|
|
@@ -98,9 +98,7 @@ def gradio_interface():
|
|
| 98 |
# Example image + prompt pairs
|
| 99 |
examples = [
|
| 100 |
["cookies.jpg", "Detect the cookies and label their types."],
|
| 101 |
-
["
|
| 102 |
-
["yoga.jpg", "Show the different yoga poses and name them."],
|
| 103 |
-
["zoom_face.png", "Label the tired faces in the image."]
|
| 104 |
]
|
| 105 |
|
| 106 |
with gr.Blocks(gr.themes.Glass(secondary_hue= "rose")) as demo:
|
|
|
|
| 12 |
# 1. SETUP API KEY
|
| 13 |
# ----------------
|
| 14 |
load_dotenv()
|
| 15 |
+
api_key = os.getenv("AIzaSyAdB0vfFqsbTZO8srXJAb2ehUZqHeEamdg")
|
| 16 |
# Configure the Google AI library
|
| 17 |
genai.configure(api_key=api_key)
|
| 18 |
|
|
|
|
| 98 |
# Example image + prompt pairs
|
| 99 |
examples = [
|
| 100 |
["cookies.jpg", "Detect the cookies and label their types."],
|
| 101 |
+
["fridge.jpg", "Detect the food items in the fridge and label their categories (vegetables, dairy, drinks, leftovers)."]
|
|
|
|
|
|
|
| 102 |
]
|
| 103 |
|
| 104 |
with gr.Blocks(gr.themes.Glass(secondary_hue= "rose")) as demo:
|