Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@ import streamlit as st
|
|
| 2 |
import openai
|
| 3 |
import PyPDF2
|
| 4 |
from docx import Document
|
| 5 |
-
import requests
|
| 6 |
|
| 7 |
# Configuraci贸n de la interfaz
|
| 8 |
st.set_page_config(page_title="Boti Asistente", layout="wide", initial_sidebar_state="expanded")
|
|
@@ -142,12 +141,13 @@ st.sidebar.markdown("Seleccione una opci贸n:")
|
|
| 142 |
opciones = ["P谩gina Principal", "Asistente Boti", "Agentes"]
|
| 143 |
seleccion = st.sidebar.selectbox("Opciones", opciones)
|
| 144 |
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
|
|
|
| 151 |
|
| 152 |
if __name__ == "__main__":
|
| 153 |
main()
|
|
|
|
| 2 |
import openai
|
| 3 |
import PyPDF2
|
| 4 |
from docx import Document
|
|
|
|
| 5 |
|
| 6 |
# Configuraci贸n de la interfaz
|
| 7 |
st.set_page_config(page_title="Boti Asistente", layout="wide", initial_sidebar_state="expanded")
|
|
|
|
| 141 |
opciones = ["P谩gina Principal", "Asistente Boti", "Agentes"]
|
| 142 |
seleccion = st.sidebar.selectbox("Opciones", opciones)
|
| 143 |
|
| 144 |
+
def main():
|
| 145 |
+
if seleccion == "P谩gina Principal":
|
| 146 |
+
pagina_principal()
|
| 147 |
+
elif seleccion == "Asistente Boti":
|
| 148 |
+
pagina_asistente()
|
| 149 |
+
elif seleccion == "Agentes":
|
| 150 |
+
pagina_agentes()
|
| 151 |
|
| 152 |
if __name__ == "__main__":
|
| 153 |
main()
|