Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,7 +146,7 @@ if generate_button and (prompt or uploaded_file):
|
|
| 146 |
contents=contents,
|
| 147 |
config=types.GenerateContentConfig(
|
| 148 |
response_modalities=["Text","Image"], # Request both just in case, though primarily want Image
|
| 149 |
-
|
| 150 |
# system_instruction=system_instruction, # Keeping commented out as per original code
|
| 151 |
),
|
| 152 |
)
|
|
|
|
| 146 |
contents=contents,
|
| 147 |
config=types.GenerateContentConfig(
|
| 148 |
response_modalities=["Text","Image"], # Request both just in case, though primarily want Image
|
| 149 |
+
safety_settings = safety_settings,
|
| 150 |
# system_instruction=system_instruction, # Keeping commented out as per original code
|
| 151 |
),
|
| 152 |
)
|