-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathapp.py
48 lines (40 loc) · 1.47 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import streamlit as st
import homePage
import exploratoryDataAnalysis
import playerAnalysis
import batter_vs_bowlerAnalysis
import teamAnalysis
import team_vs_teamAnalysis
import scorePrediction
import winnerPrediction
st.set_page_config(
page_title="IPL ANALYSIS",
page_icon="🏏",
initial_sidebar_state='expanded',
layout="wide"
)
st.markdown(
"""
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
""",
unsafe_allow_html=True,
)
PAGES = {
"HOME": homePage,
"Exploratory Data Analysis": exploratoryDataAnalysis,
"Team Analysis": teamAnalysis,
"Team v/s Team": team_vs_teamAnalysis,
"Batter v/s Bowler": batter_vs_bowlerAnalysis,
"Player Analysis": playerAnalysis,
"Predict Score": scorePrediction,
"Predict Win Probability": winnerPrediction
}
st.sidebar.title('NAVIGATION')
selection = st.sidebar.radio('', list(PAGES.keys()))
page = PAGES[selection]
page.app()
# To run the app, run the following command in the terminal
# streamlit run app.py
# This will open a new tab in the browser with the app running
# To stop the app, press Ctrl+C in the terminal