Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,10 @@ try:
|
|
| 44 |
st.stop()
|
| 45 |
|
| 46 |
# NUEVA FORMA DE INICIAR EL CLIENTE
|
| 47 |
-
client = genai.Client(
|
|
|
|
|
|
|
|
|
|
| 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}")
|