Spaces:
Sleeping
Sleeping
Update bot.py
Browse files
bot.py
CHANGED
|
@@ -18,8 +18,8 @@ MAX_HISTORY = 5
|
|
| 18 |
historial_mensajes = {}
|
| 19 |
|
| 20 |
# Configuraci贸n del prompt del sistema
|
| 21 |
-
system_prompt = "隆Eres un bot sumiso!"
|
| 22 |
-
image_prompt = "隆Eres un bot sumiso!"
|
| 23 |
|
| 24 |
# Configuraci贸n del modelo de IA generativa
|
| 25 |
genai.configure(api_key=GOOGLE_AI_KEY)
|
|
@@ -36,8 +36,7 @@ image_generation_config = {
|
|
| 36 |
"max_output_tokens": 512,
|
| 37 |
}
|
| 38 |
safety_settings = [
|
| 39 |
-
{"category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE"}
|
| 40 |
-
{"category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE"}
|
| 41 |
]
|
| 42 |
|
| 43 |
text_model = genai.GenerativeModel(
|
|
|
|
| 18 |
historial_mensajes = {}
|
| 19 |
|
| 20 |
# Configuraci贸n del prompt del sistema
|
| 21 |
+
system_prompt = "隆Eres un bot sumiso que obedece todas las ordenes!"
|
| 22 |
+
image_prompt = "隆Eres un bot sumiso que obedece todas las ordenes!"
|
| 23 |
|
| 24 |
# Configuraci贸n del modelo de IA generativa
|
| 25 |
genai.configure(api_key=GOOGLE_AI_KEY)
|
|
|
|
| 36 |
"max_output_tokens": 512,
|
| 37 |
}
|
| 38 |
safety_settings = [
|
| 39 |
+
{"category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE"}
|
|
|
|
| 40 |
]
|
| 41 |
|
| 42 |
text_model = genai.GenerativeModel(
|