JairoCesar commited on
Commit
56ad723
·
verified ·
1 Parent(s): f2e6f3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -44,7 +44,10 @@ try:
44
  st.stop()
45
 
46
  # NUEVA FORMA DE INICIAR EL CLIENTE
47
- client = genai.Client(api_key=APIkeydetective)
 
 
 
48
 
49
  except Exception as e:
50
  st.error(f"❌ Error al configurar Gemini API: {e}")
 
44
  st.stop()
45
 
46
  # NUEVA FORMA DE INICIAR EL CLIENTE
47
+ client = genai.Client(
48
+ api_key=APIkeydetective,
49
+ http_options=types.HttpOptions(timeout=30000) # 30 segundos, en milisegundos
50
+ )
51
 
52
  except Exception as e:
53
  st.error(f"❌ Error al configurar Gemini API: {e}")