Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,13 @@ from transformers import GroundingDinoProcessor
|
|
| 7 |
from hf_model import CountEX
|
| 8 |
from utils import post_process_grounded_object_detection, post_process_grounded_object_detection_with_queries
|
| 9 |
import google.generativeai as genai
|
| 10 |
-
|
| 11 |
# Global variables for model and processor
|
| 12 |
model = None
|
| 13 |
processor = None
|
| 14 |
device = None
|
| 15 |
|
| 16 |
# Configure Gemini
|
| 17 |
-
genai.configure(api_key='
|
| 18 |
gemini_model = genai.GenerativeModel("gemini-2.0-flash")
|
| 19 |
|
| 20 |
PARSING_PROMPT = """Parse the user's counting instruction into two lists:
|
|
|
|
| 7 |
from hf_model import CountEX
|
| 8 |
from utils import post_process_grounded_object_detection, post_process_grounded_object_detection_with_queries
|
| 9 |
import google.generativeai as genai
|
|
|
|
| 10 |
# Global variables for model and processor
|
| 11 |
model = None
|
| 12 |
processor = None
|
| 13 |
device = None
|
| 14 |
|
| 15 |
# Configure Gemini
|
| 16 |
+
genai.configure(api_key='AIzaSyApqa65vVYTmw4FC4wP-6-_xpBLxXdctxE')
|
| 17 |
gemini_model = genai.GenerativeModel("gemini-2.0-flash")
|
| 18 |
|
| 19 |
PARSING_PROMPT = """Parse the user's counting instruction into two lists:
|