jeysshon commited on
Commit
6159535
verified
1 Parent(s): 841b0f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -23,7 +23,6 @@ st.markdown("""
23
  </style>
24
  """, unsafe_allow_html=True)
25
 
26
-
27
  # Respuestas automatizadas
28
  def respuestas_automatizadas(texto):
29
  texto = texto.lower()
@@ -62,7 +61,11 @@ def procesar_texto(texto):
62
  def procesar_imagen(imagen):
63
  try:
64
  genai.configure(api_key=api_key)
65
- modelo = genai.GenerativeModel('gemini-1.5-pro-latest')
 
 
 
 
66
 
67
  if isinstance(imagen, Image.Image):
68
  respuesta = modelo.generate_content(imagen)
 
23
  </style>
24
  """, unsafe_allow_html=True)
25
 
 
26
  # Respuestas automatizadas
27
  def respuestas_automatizadas(texto):
28
  texto = texto.lower()
 
61
  def procesar_imagen(imagen):
62
  try:
63
  genai.configure(api_key=api_key)
64
+ modelo = genai.GenerativeModel(
65
+ 'gemini-1.5-pro-latest',
66
+ # Instrucci贸n para que la descripci贸n de la imagen se genere en espa帽ol
67
+ system_instruction="Describe la imagen en espa帽ol."
68
+ )
69
 
70
  if isinstance(imagen, Image.Image):
71
  respuesta = modelo.generate_content(imagen)