Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,11 +16,11 @@ import requests
|
|
| 16 |
# Configuraci贸n de la clave API
|
| 17 |
load_dotenv()
|
| 18 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
| 19 |
-
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "
|
| 20 |
-
PEXELS_API_KEY = os.getenv("
|
| 21 |
|
| 22 |
# Inicializaci贸n de Vertex AI
|
| 23 |
-
vertexai.init(project="
|
| 24 |
|
| 25 |
# Inicializaci贸n del modelo Gemini usando Vertex AI
|
| 26 |
model = GenerativeModel(model_name="gemini-1.0-pro-vision")
|
|
@@ -47,28 +47,28 @@ st.markdown(
|
|
| 47 |
}
|
| 48 |
.stMarkdown>div>p {
|
| 49 |
color: #4CAF50;
|
| 50 |
-
font-weight: bold
|
| 51 |
}
|
| 52 |
.stAudio {
|
| 53 |
margin-top: 20px;
|
| 54 |
border: 2px solid #4CAF50;
|
| 55 |
-
border-radius: 10px
|
| 56 |
}
|
| 57 |
.stFileUploader>div>div>input {
|
| 58 |
-
border: 1px solid #4CAF50
|
| 59 |
-
border-radius: 10px
|
| 60 |
}
|
| 61 |
.spinner {
|
| 62 |
-
border: 8px solid #f3f3f3
|
| 63 |
-
border-top: 8px solid #4CAF50
|
| 64 |
-
border-radius: 50%
|
| 65 |
-
width: 60px
|
| 66 |
-
height: 60px
|
| 67 |
-
animation: spin 1s linear infinite
|
| 68 |
}
|
| 69 |
@keyframes spin {
|
| 70 |
-
0% { transform: rotate(0deg)
|
| 71 |
-
100% { transform: rotate(360deg)
|
| 72 |
}
|
| 73 |
</style>
|
| 74 |
""",
|
|
@@ -76,7 +76,7 @@ st.markdown(
|
|
| 76 |
)
|
| 77 |
|
| 78 |
# Encabezado
|
| 79 |
-
st.image("
|
| 80 |
st.title("馃摉 LOS C脫DIGOS DE DIOS - BOTIDINAMIX AI")
|
| 81 |
st.markdown("Bienvenido al Asistente Teol贸gico, donde puedes preguntar sobre interpretaciones y reflexiones b铆blicas.")
|
| 82 |
|
|
|
|
| 16 |
# Configuraci贸n de la clave API
|
| 17 |
load_dotenv()
|
| 18 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
| 19 |
+
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/your/google-cloud-credentials.json"
|
| 20 |
+
PEXELS_API_KEY = os.getenv("PEXELS_API_KEY")
|
| 21 |
|
| 22 |
# Inicializaci贸n de Vertex AI
|
| 23 |
+
vertexai.init(project="gen-lang-client-0608257787", location="us-central1") # Reemplaza con tu ID de proyecto y ubicaci贸n
|
| 24 |
|
| 25 |
# Inicializaci贸n del modelo Gemini usando Vertex AI
|
| 26 |
model = GenerativeModel(model_name="gemini-1.0-pro-vision")
|
|
|
|
| 47 |
}
|
| 48 |
.stMarkdown>div>p {
|
| 49 |
color: #4CAF50;
|
| 50 |
+
font-weight: bold.
|
| 51 |
}
|
| 52 |
.stAudio {
|
| 53 |
margin-top: 20px;
|
| 54 |
border: 2px solid #4CAF50;
|
| 55 |
+
border-radius: 10px.
|
| 56 |
}
|
| 57 |
.stFileUploader>div>div>input {
|
| 58 |
+
border: 1px solid #4CAF50.
|
| 59 |
+
border-radius: 10px.
|
| 60 |
}
|
| 61 |
.spinner {
|
| 62 |
+
border: 8px solid #f3f3f3.
|
| 63 |
+
border-top: 8px solid #4CAF50.
|
| 64 |
+
border-radius: 50%.
|
| 65 |
+
width: 60px.
|
| 66 |
+
height: 60px.
|
| 67 |
+
animation: spin 1s linear infinite.
|
| 68 |
}
|
| 69 |
@keyframes spin {
|
| 70 |
+
0% { transform: rotate(0deg). }
|
| 71 |
+
100% { transform: rotate(360deg). }
|
| 72 |
}
|
| 73 |
</style>
|
| 74 |
""",
|
|
|
|
| 76 |
)
|
| 77 |
|
| 78 |
# Encabezado
|
| 79 |
+
st.image("biblia.jpg")
|
| 80 |
st.title("馃摉 LOS C脫DIGOS DE DIOS - BOTIDINAMIX AI")
|
| 81 |
st.markdown("Bienvenido al Asistente Teol贸gico, donde puedes preguntar sobre interpretaciones y reflexiones b铆blicas.")
|
| 82 |
|