ayaaa123 commited on
Commit
2985e63
·
verified ·
1 Parent(s): c5ded30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ bounding_box_system_instructions = """
23
  Return bounding boxes as a JSON array with labels. Never return masks or code fencing. Limit to 25 objects.
24
  If an object is present multiple times, name them according to their unique characteristic (colors, size, position, unique characteristics, etc..).
25
  """
26
- model = genai.GenerativeModel( model_name='gemini-2.5-flash', system_instruction=bounding_box_system_instructions)
27
  generation_config = genai.types.GenerationConfig(
28
  temperature=0.5,
29
 
 
23
  Return bounding boxes as a JSON array with labels. Never return masks or code fencing. Limit to 25 objects.
24
  If an object is present multiple times, name them according to their unique characteristic (colors, size, position, unique characteristics, etc..).
25
  """
26
+ model = genai.GenerativeModel( model_name='gemini-2.5-flash', system_instruction=bounding_box_system_instructions , safety_settings=[ types.SafetySetting( category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_ONLY_HIGH", ) ],)
27
  generation_config = genai.types.GenerationConfig(
28
  temperature=0.5,
29