danielle2003 commited on
Commit
4eecd65
·
verified ·
1 Parent(s): fde4ffd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -260,7 +260,7 @@ st.markdown(f"""
260
  color: var(--white);
261
  line-height: 1.6;
262
  overflow-x: hidden;
263
- height: 100vh;
264
  position: relative; /* Needed for absolute positioning of bg-animation */
265
  }}
266
  /* Streamlit's main content wrapper */
@@ -434,13 +434,13 @@ st.markdown(f"""
434
 
435
  /* Hero Section */
436
  .hero {{
437
- height: 900px;
438
  display: flex;
439
  align-items: center;
440
  position: relative;
441
  overflow: hidden;
442
  padding-top: 80px; /* Account for fixed navbar */
443
- margin-top:-250px;
444
  }}
445
 
446
  .hero-bg {{
@@ -567,14 +567,14 @@ st.markdown(f"""
567
  /* Streamlit will show/hide these based on st.session_state */
568
  .page {{
569
  display: none; /* Controlled by Streamlit's Python logic */
570
- height: 900px;
571
  padding: 120px 0 80px; /* Padding for header/footer */
572
- margin-top: -250px;
573
  }}
574
 
575
  .page.active {{
576
  display: block; /* Shown by Streamlit */
577
- margin-top: -100px !important;
578
  }}
579
 
580
  .page-header {{
@@ -760,7 +760,7 @@ st.markdown(f"""
760
  padding: 0.5rem;
761
  max-width: 800px;
762
  margin: 0 auto;
763
- margin-top:-650px;
764
  max-height:400px !important;
765
  }}
766
 
@@ -1072,9 +1072,9 @@ st.markdown("""
1072
  display: flex;
1073
  gap: 1rem;
1074
  z-index:100000000;
1075
- margin-top:-330px;
1076
  flex-wrap: wrap;
1077
- margin-left:200px;
1078
  }
1079
  [class*="st-key-abt"] {
1080
  background: transparent;
@@ -1159,7 +1159,7 @@ def load_model():
1159
  st.error("Model file 'credit_card_expenditure_model.joblib' not found. Please ensure it's in the same directory as this app.")
1160
  st.stop() # Stop the app if model is not found
1161
  except Exception as e:
1162
- st.error(f"Error loading model: {{e}}")
1163
  st.stop()
1164
 
1165
 
 
260
  color: var(--white);
261
  line-height: 1.6;
262
  overflow-x: hidden;
263
+ min-height: 900px;
264
  position: relative; /* Needed for absolute positioning of bg-animation */
265
  }}
266
  /* Streamlit's main content wrapper */
 
434
 
435
  /* Hero Section */
436
  .hero {{
437
+ min-height: 100vh;
438
  display: flex;
439
  align-items: center;
440
  position: relative;
441
  overflow: hidden;
442
  padding-top: 80px; /* Account for fixed navbar */
443
+ margin-top:-150px;
444
  }}
445
 
446
  .hero-bg {{
 
567
  /* Streamlit will show/hide these based on st.session_state */
568
  .page {{
569
  display: none; /* Controlled by Streamlit's Python logic */
570
+ min-height: 100vh;
571
  padding: 120px 0 80px; /* Padding for header/footer */
572
+ margin-top: -200px;
573
  }}
574
 
575
  .page.active {{
576
  display: block; /* Shown by Streamlit */
577
+ margin-top: -80px !important;
578
  }}
579
 
580
  .page-header {{
 
760
  padding: 0.5rem;
761
  max-width: 800px;
762
  margin: 0 auto;
763
+ margin-top:-520px;
764
  max-height:400px !important;
765
  }}
766
 
 
1072
  display: flex;
1073
  gap: 1rem;
1074
  z-index:100000000;
1075
+ margin-top:-230px;
1076
  flex-wrap: wrap;
1077
+ margin-left:170px;
1078
  }
1079
  [class*="st-key-abt"] {
1080
  background: transparent;
 
1159
  st.error("Model file 'credit_card_expenditure_model.joblib' not found. Please ensure it's in the same directory as this app.")
1160
  st.stop() # Stop the app if model is not found
1161
  except Exception as e:
1162
+ st.error(f"Error loading model: {e}")
1163
  st.stop()
1164
 
1165