georad commited on
Commit
e09c2af
·
verified ·
1 Parent(s): b076b9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -7,16 +7,7 @@ def get_device_map() -> str:
7
  return 'cuda' if torch.cuda.is_available() else 'cpu'
8
  device = get_device_map() # 'cpu'
9
 
10
- def setup_page():
11
- with st.spinner("In progress..."):
12
- hf_token = os.getenv('HF_TOKEN')
13
- df_chapters = pd.read_csv("SBS_V2_0/Chapter_Index_Rows_with_total.csv")
14
- st.image("images/SBS_Chapter_Index.png", use_container_width=True)
15
- st.subheader("Select specific Chapter for quicker results")
16
- st.write(df_chapters.head())
17
-
18
-
19
- custom_css = f"""
20
  <style>
21
  /* Making the Streamlit header sticky */
22
  {HEADER_SELECTOR} {{
@@ -32,6 +23,15 @@ def setup_page():
32
  /* }} */
33
  }}
34
 
 
 
 
 
 
 
 
 
 
35
  /* Adding padding to the main content area to prevent overlap with the sticky header */
36
  {MAIN_CONTENT_SELECTOR} {{
37
  padding-top: 10px !important; /* {HEADER_HEIGHT} !important; */
 
7
  return 'cuda' if torch.cuda.is_available() else 'cpu'
8
  device = get_device_map() # 'cpu'
9
 
10
+ custom_css = f"""
 
 
 
 
 
 
 
 
 
11
  <style>
12
  /* Making the Streamlit header sticky */
13
  {HEADER_SELECTOR} {{
 
23
  /* }} */
24
  }}
25
 
26
+
27
+ def setup_page():
28
+ with st.spinner("In progress..."):
29
+ hf_token = os.getenv('HF_TOKEN')
30
+ df_chapters = pd.read_csv("SBS_V2_0/Chapter_Index_Rows_with_total.csv")
31
+ st.image("images/SBS_Chapter_Index.png", use_container_width=True)
32
+ st.subheader("Select specific Chapter for quicker results")
33
+ st.write(df_chapters.head())
34
+
35
  /* Adding padding to the main content area to prevent overlap with the sticky header */
36
  {MAIN_CONTENT_SELECTOR} {{
37
  padding-top: 10px !important; /* {HEADER_HEIGHT} !important; */