Spaces:
Runtime error
Runtime error
| # librerias | |
| import streamlit as st | |
| from streamlit_option_menu import option_menu | |
| # paginas | |
| from page.analisis import Analisis | |
| from page.contact import Contact | |
| from page.home import Home | |
| from page.machine_learning import ML | |
| from page.new import New | |
| # link necesario para bootstrap | |
| st.markdown("""<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> | |
| <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>""", | |
| unsafe_allow_html=True) | |
| # Menu horizontal | |
| selected2 = option_menu(None, ["Home", "Análisis", "ML", "New", "Contact"], | |
| icons=['house', 'bi-archive', "bi-robot", | |
| "bi-arrow-up-right-square", | |
| "bi-envelope"], | |
| menu_icon="cast", | |
| default_index=0, | |
| orientation="horizontal", | |
| ) | |
| # Home | |
| if selected2 == "Home": | |
| Home() | |
| # Análisis | |
| if selected2 == "Análisis": | |
| Analisis() | |
| # ML | |
| if selected2 == "ML": | |
| ML() | |
| # New | |
| if selected2 == "New": | |
| New() | |
| # Contact | |
| if selected2 == "Contact": | |
| Contact() | |