hanantonio commited on
Commit
0f8de1b
·
verified ·
1 Parent(s): 4ab46ef

Upload 21 files

Browse files
Files changed (1) hide show
  1. src/src/app.py +2 -24
src/src/app.py CHANGED
@@ -1,26 +1,7 @@
1
  import streamlit as st
2
- import os
3
 
4
- # =============================================
5
- # Base directory for relative paths
6
- # =============================================
7
- BASE_DIR = os.path.dirname(__file__)
8
-
9
- # =============================================
10
- # Streamlit Page Config
11
- # =============================================
12
- st.set_page_config(
13
- page_title='ACRE - Automated Customer Review Analysis',
14
- layout='wide',
15
- initial_sidebar_state='expanded'
16
- )
17
-
18
- # =============================================
19
- # Import custom modules inside run() to avoid
20
- # global loading issues
21
- # =============================================
22
  def run():
23
- # Import pages
24
  from eda import run as eda_run
25
  from prediction_compile import run as prediction_run
26
 
@@ -30,7 +11,7 @@ def run():
30
  ('Exploratory Data Analysis (EDA)', 'Prediction')
31
  )
32
 
33
- # Page content
34
  if page == 'Exploratory Data Analysis (EDA)':
35
  eda_run()
36
  else:
@@ -47,8 +28,5 @@ def run():
47
  unsafe_allow_html=True
48
  )
49
 
50
- # =============================================
51
- # Run app
52
- # =============================================
53
  if __name__ == "__main__":
54
  run()
 
1
  import streamlit as st
 
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  def run():
4
+ # Import pages inside function to avoid global loading issues
5
  from eda import run as eda_run
6
  from prediction_compile import run as prediction_run
7
 
 
11
  ('Exploratory Data Analysis (EDA)', 'Prediction')
12
  )
13
 
14
+ # Show page
15
  if page == 'Exploratory Data Analysis (EDA)':
16
  eda_run()
17
  else:
 
28
  unsafe_allow_html=True
29
  )
30
 
 
 
 
31
  if __name__ == "__main__":
32
  run()