yifehuang97 commited on
Commit
407376c
·
verified ·
1 Parent(s): 187e4d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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='AIzaSyAoQcUhn_KwOWvjdVqJ1kEaT0zBcnAKppo')
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: