Update src/streamlit_app.py

#8
Files changed (1) hide show
  1. src/streamlit_app.py +4 -3
src/streamlit_app.py CHANGED
@@ -27,11 +27,12 @@ os.environ["GOOGLE_API_KEY"]= os.getenv('GOOGLE_API_KEY')
27
  import os
28
 
29
  def load_css(file_name):
30
- full_path = os.path.join(os.path.dirname(__file__), file_name)
31
- with open(full_path) as f:
 
32
  st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
33
 
34
- load_css('CSS/style.css')
35
 
36
 
37
 
 
27
  import os
28
 
29
  def load_css(file_name):
30
+ current_dir = os.path.dirname(__file__)
31
+ file_path = os.path.join(current_dir, file_name)
32
+ with open(file_path, "r") as f:
33
  st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
34
 
35
+ load_css("CSS/style.css")
36
 
37
 
38