예제 #1
0
def main():

    menu = [
        'Introduction', "Exploration du jeu d'entraînement",
        'Détection de formes nuageuses'
    ]
    choice = st.sidebar.selectbox('Menu', menu)

    if choice == 'Détection de formes nuageuses':
        cloudDetection()

    elif choice == 'Introduction':
        welcome()

    elif choice == "Exploration du jeu d'entraînement":
        app = MultiApp()
        app.add_app("Images", Exploration_Images)
        app.add_app("Labels", Exploration_Labels)
        app.add_app("Taille des masques de formes", Exploration_Taille_Masques)
        app.add_app("Couleur des masques de formes",
                    Exploration_Couleur_Masques)
        app.run()
예제 #2
0
def main():
    app = MultiApp()
    # add app 1
    app.add_app("Ranking", f1)

    app.run()
예제 #3
0
파일: app.py 프로젝트: TAJD/workout_app
import streamlit as st
from multiapp import MultiApp

from apps import summary, plots, max_reps

app = MultiApp()

st.set_page_config(page_title="My Workouts")

st.markdown("""
# My Workouts

""")

# Add all your application here
app.add_app("Summary", summary.app)
app.add_app("Plots", plots.app)
app.add_app("Max reps", max_reps.app)
# The main app
app.run()
예제 #4
0
# hide_streamlit_style = """
# <style>
# #MainMenu {visibility: hidden;}
# footer {visibility: hidden;}
# </style>
# """
# st.markdown(hide_streamlit_style, unsafe_allow_html=True) 
# Full Screen mode
# enable_fullscreen_content()


# MULTI-APPLICATION
# st.set_page_config(layout="wide")
app = MultiApp()
# Add all your application here
app.add_app("Home", home.app)
app.add_app("Research & Analysis", analysis.app)
app.add_app("How it works?", how_it_works.app)


# Sidebar Menu
st.sidebar.title('Navigation')
# The main app
app.run()
# Sidebar Menu
st.sidebar.title("Contribute")

st.sidebar.subheader("Backend")
st.sidebar.markdown("FastAPI is a modern, fast (high-performance), web framework for building APIs.")
st.sidebar.markdown("[API & Swagger docs](https://hr-api.smascha.ai/docs)")
st.sidebar.markdown("[GitHub: sources & docs](https://github.com/sebastienmascha/data-science-viz-streamlit-hr-analytics)")
예제 #5
0
파일: app.py 프로젝트: cesar1091/Web_2.0
import streamlit as st
from multiapp import MultiApp
from apps import ventas_dist, prediccion_2021

# import your app modules here

app = MultiApp()
st.set_page_config(layout="wide")
st.markdown("""
# Web app prediccion de ventas sell out protisa
Seleccione la escala temporal de prediccion (semanal, quincenal, mensual)
""")

# Add all your application here
app.add_app("Ventas Distribuidora año 2020", ventas_dist.app)
app.add_app("Prediccion ventas año 2021", prediccion_2021.app)

# The main app
app.run()
예제 #6
0
import streamlit as st
from apps import home, eda, forecast
from multiapp import MultiApp

app = MultiApp()

# Add all your application here
app.add_app('Intro', home.app)
app.add_app('Explore Data', eda.app)
app.add_app('Forecast', forecast.app)

# The main app
app.run()
예제 #7
0
import streamlit as st
from multiapp import MultiApp
from screens import home_screen, prediction_by_marks_screen, prediction_by_person_screen

st.markdown("""<link 
        rel='stylesheet' 
        href='https://use.fontawesome.com/releases/v5.8.1/css/all.css' 
        integrity='sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf' 
        crossorigin='anonymous'
    >""",
            unsafe_allow_html=True)

app = MultiApp()

# Add all your application here
app.add_app("Accueil", home_screen.app)
app.add_app("Prédiction par notes", prediction_by_marks_screen.app)
app.add_app("Prédiction par type d'étudiant", prediction_by_person_screen.app)

# The main app
app.run()
예제 #8
0
import defect_app
import summary_app
from multiapp import MultiApp
import streamlit as st

app = MultiApp()
app.add_app("Defect Extraction", defect_app.app)
app.add_app("Defect Summarization ", summary_app.app)
app.run()
예제 #9
0
import streamlit as st
from multiapp import MultiApp
from apps import home, parties_comparator, vote_summary, deputies # import your app modules here

#configuration of the page
st.set_page_config(layout="wide")

app = MultiApp()

# Add all your application here
app.add_app("Home", home.app)
app.add_app("Comparator", parties_comparator.app)
app.add_app("Votes", vote_summary.app)
app.add_app("Deputies", deputies.app)

# The main app
app.run()
예제 #10
0
import streamlit as st
from multiapp import MultiApp
from apps import home, instruction  # import your app modules here

app = MultiApp()
app.add_app("Home Page", home.app)
app.add_app("Instructions Page",
            instruction.app)  # Add all your pages here below
#app.add_app("Main Record Page", main3.app)

################################### General Helpful Notes and Codes #####################################################
# To run just put '/Users/yuxinzhu/.spyder-py3/Streamlit/streamlit-multiapps/app.py' in the terminal window

#SOMETIMES YOUR WORKING IN THE WRONG DIRECTORY AND YOUR FILES ARE IN ANOTHER DIRECTORY
#To check your working directory use the code below:
# import os
# cwd = os.getcwd()  # Get the current working directory (cwd)
# files = os.listdir(cwd)  # Get all the files in that directory
# print("Files in working dir %r: %s" % (cwd, files))
#########################################################################################################################

################################### TO RECORD VOCAL DATA ################################################################
import sounddevice as sd
from scipy.io.wavfile import write
from scipy.signal import filtfilt
import scipy
import scipy.io.wavfile as wav
import matplotlib.pyplot as plt
import numpy as np
import numpy.fft as fft
import streamlit as st
예제 #11
0
import streamlit as st
import stock
import NBA
from multiapp import MultiApp

app = MultiApp()

st.set_page_config(page_title="Coexist", page_icon="☮️")
st.markdown("""
Computer Science-Automate My Life
""")

# Add all your application here
app.add_app("Stock Market", stock.app)
app.add_app("DraftKings", NBA.app)
# The main app
app.run()
예제 #12
0
import streamlit as st
from multiapp import MultiApp
from apps import home, data, visualization, models
import streamlit.components.v1 as stc

#Title for the page
HTML_BANNER = """
<div style="background-color:#0723f5;padding:10px;border-radius:10px">
<h1 style="color:white;text-align:center;">Coronavirus Sentiment Analysis </h1>
</div>
    """
stc.html(HTML_BANNER)

app = MultiApp()

#Adding all the applications here

app.add_app("Home", home.app)
app.add_app("Dataset", data.app)
app.add_app("Mirror of the Mind", visualization.app)
app.add_app("Models", models.app)

#The main app
app.run()
예제 #13
0
import streamlit as st
from multiapp import MultiApp
import home, employees, managers

# Set page parameters
st.set_page_config(page_title='Thinking Machines Exam', layout="wide")

app = MultiApp()

# Sidebar
st.sidebar.markdown("""
# 🤖 HuRMI 
The Human Resource Management Interface aims to extract insight and information from the dataset provided by the company.
""")

app.add_app("Home", home.app)
app.add_app("Employees", employees.app)
app.add_app("Managers", managers.app)

app.run()
from multiapp import MultiApp
import streamlit as st


def foo():
    st.title("Hello Foo")


def bar():
    st.title("Hello Bar")


app = MultiApp()

app.add_app("Foo", foo)
hobby = st.selectbox("Hobbies: ", ['Dancing', 'Reading', 'Sports'])

app.add_app("Bar", bar)
# print the selected hobby
st.write("Your hobby is: ", hobby)

app.run()
예제 #15
0
import streamlit as st
from multiapp import MultiApp
from apps import home, data_stats, recruiting  # import your app modules here

app = MultiApp()

# Add all your application here
app.add_app("Home", home.app)
app.add_app("Data Stats", data_stats.app)
app.add_app("Recruiting Stats", recruiting.app)

# The main app
app.run()
예제 #16
0
import app_2
import help_1
import about
import streamlit as st

from multiapp import MultiApp
app = MultiApp()
st.sidebar.image('Images/1748083.png', width=100)
app.add_app("Bioferm Application", app_2.app)
app.add_app("Help", help_1.app)
# app.add_app("About", about.app)
app.run()
예제 #17
0
import streamlit as st
from multiapp import MultiApp
from apps import home, syllabus, orientation, workshop  # importing app modules

app = MultiApp()

# all applications for navigation
app.add_app("Home", home.app)
app.add_app("Syllabus", syllabus.app)
app.add_app("Orientation", orientation.app)
app.add_app("Workshop", workshop.app)

# The main app
app.run()
예제 #18
0
import streamlit as st
from multiapp import MultiApp
from apps import vsigv_semanal, vsigv_quincena, vsigv_mes, home

# import your app modules here
app = MultiApp()

st.markdown("""
# Web app prediccion de ventas sell out protisa
Seleccione la escala temporal de prediccion (semanal, quincenal, mensual)
""")

# Add all your application here
app.add_app("Home", home.app)
app.add_app("Semanal", vsigv_semanal.app)
app.add_app("Quincena", vsigv_quincena.app)
app.add_app("Mensual", vsigv_mes.app)
# The main app
app.run()
예제 #19
0
        uploaded_file = st.file_uploader("Choose an image from your PC",
                                         type="jpeg")
        if uploaded_file is not None:
            st.image(uploaded_file, width=None)
            z = st.slider('Select number of images (k) to be retrieved :', 0,
                          10, 1)
            if st.button('Submit'):
                st.subheader("Similar Products")
                for index, row in df.iterrows():
                    if row['0'] == str(uploaded_file):
                        while n < z + 1:
                            st.image(row[n], width=100, caption=row[n])
                            n += 1
    if c == 'Select image from existing':
        st.subheader("Choose an image from the below menu: ")
        pic = st.selectbox('Choices : ', images)
        st.image(pic, width=None)
        st.subheader('Similar images to be shown?')
        z = st.slider('Similar images to be shown?', 1, 10, 1)
        st.subheader("Similar Products")
        for index, row in df.iterrows():
            if row['0'] == pic:
                while n < z + 1:
                    st.image(row[n], width=100, caption=row[n])
                    n += 1


app = MultiApp()
app.add_app("Artistic Style Similarity Search", asearch)
app.add_app("Facebook FAISS", fbfa)
app.run()
import streamlit as st
from multiapp import MultiApp
from apps import home, data, modeling

app = MultiApp()

app.add_app('Home', home.app)
app.add_app('Data', data.app)
app.add_app('Modeling', modeling.app)

app.run()
예제 #21
0
#     }
#     .css-145kmo2 {
#     color: white;
#     }
#     .st-bo {
#     color: white;
#     }
#     </style>
#     """
# st.markdown(darkmode, unsafe_allow_html=True)

# st.markdown(
#     f"""
#     <style>
#     .reportview-container {{
#         background-color: #0E1117;
#         color: white;
#     }}
#     </style>
#     """,
#     unsafe_allow_html=True
# )

app = MultiApp()

app.add_app("Home", home.app)
app.add_app("Simple", simple.app)
app.add_app("Advanced", advanced.app)

app.run()
예제 #22
0
import streamlit as st
from multiapp import MultiApp
from apps import home, arima, lstm

app = MultiApp()


app.add_app("Home", home.app)
app.add_app("ARIMA", arima.app)
app.add_app("LSTM", lstm.app)
app.run()
예제 #23
0
def initialize():
    appl = MultiApp()
    appl.add_app('Home', home.app)
    appl.add_app('Reports', reports.app)
    appl.add_app('Tick Employees', employees.app)
    appl.add_app('Turf Employees', turf_employees.app)
    appl.add_app('Production Analysis', production_analysis.app)
    appl.add_app('Customer Analysis', customer_growth.app)
    appl.add_app('Maps', maps.app)
    appl.add_app('Weekly Report', weekly_report.app)
    appl.add_app(f'{previous_month} Summary', monthly_summary.app)
    appl.add_app('Weather', weather.app)
    appl.run()
예제 #24
0
파일: app.py 프로젝트: ssillerom/datacrop
import streamlit as st
from multiapp import MultiApp
from services import inicio, datos, autoML, dashboard, eda, limpieza, scraping

try:
    st.set_page_config(page_title='Datacrop Platform', page_icon="https://i.imgur.com/2b7fItD.png",layout='wide', initial_sidebar_state='expanded')
except:
    pass

# Se añade al objeto multi app todas las aplicaciones que componen la plataforma para que sean ejecutadas cuando se ejecute el servicio
app = MultiApp()

app.add_app("Inicio", inicio.app)
app.add_app(("Técnicas de Scraping"), scraping.app)
app.add_app("Limpieza de Datos", limpieza.app)
app.add_app("Analisis de los Datos", datos.app)
app.add_app("Dashboards", dashboard.app)
app.add_app("Datacrop Exploratory Service", eda.app)
app.add_app("Datacrop AutoML Service", autoML.app)


# ejecucion app principal
app.run()




# Remover el footer de made with streamlit
hide_footer_style = """
    <style>
예제 #25
0
import streamlit as st
from pandas.core import base
import numpy as np
import pandas as pd
import cv2
import matplotlib.pyplot as plt
from matplotlib import cm
from PIL import Image
import plotly.figure_factory as ff
from multiapp import MultiApp
from apps import img_edit, img_process, Object_Detection, Object_tracking, project  # import your app modules here

st.set_page_config(layout="wide")
app = MultiApp()

# Add all your application here
app.add_app("Image Editing", img_edit.app)
app.add_app("Image Processing", img_process.app)
app.add_app("Object Detection", Object_Detection.app)
app.add_app('Object Tracking', Object_tracking.app)
app.add_app('Project', project.app)

# The main app
app.run()
예제 #26
0
from multiapp import MultiApp
from apps import OpenChargeMap, OpenDataRDW, laadpalen, home, laadpalendata  # import your app modules here

#Maak een instantie van het multipagina framework
app = MultiApp()

# Add all your application here
app.add_app("Home", home.app)
app.add_app("OpenChargeMap", OpenChargeMap.app)
app.add_app("OpenDataRDW", OpenDataRDW.app)
app.add_app("Laadpalen Data Manipulatie", laadpalendata.app)
app.add_app("Laadpalen Data Visualisatie", laadpalen.app)
# The main app
app.run()
예제 #27
0
import streamlit as st
from multiapp import MultiApp
from apps import home, sp500, prediction  # import your app modules here

app = MultiApp()

# Add all your application here
app.add_app("Home", home.app)
app.add_app("S&P 500 Stock Analyzer", sp500.app)
app.add_app("Price Prediction and Forecasting", prediction.app)

# The main app
app.run()
예제 #28
0
st.markdown("Data Collected from Air Bnb website for the period of Jan-2020 To Dec-2020")
st.sidebar.title('EDA And Predictions')
data_load_state = st.text("")
st.balloons()


# Region Starts Global Methods
# Reading Pickle File

def load_data():
    with open(_LocationPath, 'rb') as f:
        data = pickle.load(f)
    return data


# Region Ends Global Methods

# Region Starts Global Variables
_DataFolderPath = "data"
_PickleFile_Merged_Listing_NY = "Merged_Listing_NY_4"
_LocationPath = _DataFolderPath + "/" + _PickleFile_Merged_Listing_NY

app = MultiApp()

# Add all your application here
app.add_app("Home", home.app)
app.add_app("Data Stats", data_stats.app)

# The main app
app.run()
예제 #29
0
import streamlit as st
from multiapp import MultiApp
from apps import home, calculator, AdvanceCalculator       # import your app modules here

app = MultiApp()

st.markdown("""
# Simple Calculator
""")

st.text("Use Drop Down menu below to navigate between Homepage and Calculator.")

# Add all your application here
app.add_app("Home", home.app)
app.add_app("Calculator", calculator.app)
app.add_app("Advance Calculator", AdvanceCalculator.app)
# The main app
app.run()
예제 #30
0
import streamlit as st
from multiapp import MultiApp

from yearly_statistics import yearly_statistics
from monthly_statistics import monthly_statistics
from time_spent import time_spent_moving_per_year
from yearly_comparison import yearly_comparison
from two_activities_one_year_comparison import two_activities_one_year_comparison
from evolution_of_time_spent_exercising import evolution_of_time_spent_exercising
from last_3_years_performance import last_3_years_performance

st.set_page_config(page_title='Sports Visualizations', layout='centered')

app = MultiApp()

app.add_app('Division of Time Spent', time_spent_moving_per_year)
app.add_app('Evolution of Time Spent', evolution_of_time_spent_exercising)
app.add_app('Last 3 Years Performance', last_3_years_performance)
app.add_app('Monthly Statistics', monthly_statistics)
app.add_app('Two Activities - One Year Comparison',
            two_activities_one_year_comparison)
app.add_app('Two Years - One Activity  Comparison', yearly_comparison)
app.add_app('Yearly Statistics', yearly_statistics)

app.run()