James McCool commited on
Commit
d077a00
·
1 Parent(s): d386e8e

Refactor app.py to streamline the initialization process by moving the page configuration to the top and removing unnecessary global variable deletions, enhancing code clarity and organization.

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -1,16 +1,10 @@
1
  import streamlit as st
2
- st.set_page_config(layout="wide")
3
-
4
- for name in dir():
5
- if not name.startswith('_'):
6
- del globals()[name]
7
-
8
  import numpy as np
9
  import pandas as pd
10
- import streamlit as st
11
- import gspread
12
  import pymongo
13
 
 
 
14
  @st.cache_resource
15
  def init_conn():
16
  uri = st.secrets['mongo_uri']
 
1
  import streamlit as st
 
 
 
 
 
 
2
  import numpy as np
3
  import pandas as pd
 
 
4
  import pymongo
5
 
6
+ st.set_page_config(layout="wide")
7
+
8
  @st.cache_resource
9
  def init_conn():
10
  uri = st.secrets['mongo_uri']