Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 , safety_settings=[ types.
|
| 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.SafetySettingDict( category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="BLOCK_ONLY_HIGH", ) ],)
|
| 27 |
generation_config = genai.types.GenerationConfig(
|
| 28 |
temperature=0.5,
|
| 29 |
|