ishaq101 commited on
Commit
fb20f60
·
1 Parent(s): 7ca5efc

[KM-385] [CEX] [FE] Admin Page for upload and extract CV

Browse files
Files changed (2) hide show
  1. .streamlit/config.toml +7 -0
  2. src/streamlit_app.py +11 -9
.streamlit/config.toml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ [server]
2
+ enableXsrfProtection = false
3
+ enableCORS = false
4
+ maxUploadSize = 3
5
+
6
+ [theme]
7
+ base="light"
src/streamlit_app.py CHANGED
@@ -1,4 +1,6 @@
1
  import os
 
 
2
  import json
3
  import requests
4
  import streamlit as st
@@ -410,16 +412,16 @@ def render_sidebar():
410
  unsafe_allow_html=True,
411
  )
412
 
413
- st.markdown(
414
- "<div style='font-size:0.78rem;color:#7b8de7;margin-bottom:4px;'>BACKEND</div>",
415
- unsafe_allow_html=True,
416
- )
417
- st.markdown(
418
- f"<code style='font-size:0.75rem;color:#435cdc;'>{BASE_URL}</code>",
419
- unsafe_allow_html=True,
420
- )
421
 
422
- st.markdown("<hr class='styled'>", unsafe_allow_html=True)
423
 
424
  if st.button("🚪 Logout", use_container_width=True):
425
  for key in ["token", "user", "upload_results", "extract_result", "user_files"]:
 
1
  import os
2
+ import dotenv
3
+ dotenv.load_dotenv()
4
  import json
5
  import requests
6
  import streamlit as st
 
412
  unsafe_allow_html=True,
413
  )
414
 
415
+ # st.markdown(
416
+ # "<div style='font-size:0.78rem;color:#7b8de7;margin-bottom:4px;'>BACKEND</div>",
417
+ # unsafe_allow_html=True,
418
+ # )
419
+ # st.markdown(
420
+ # f"<code style='font-size:0.75rem;color:#435cdc;'>{BASE_URL}</code>",
421
+ # unsafe_allow_html=True,
422
+ # )
423
 
424
+ # st.markdown("<hr class='styled'>", unsafe_allow_html=True)
425
 
426
  if st.button("🚪 Logout", use_container_width=True):
427
  for key in ["token", "user", "upload_results", "extract_result", "user_files"]: