Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
#8
by
Uzaiir
- opened
- 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 |
-
|
| 31 |
-
|
|
|
|
| 32 |
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
|
| 33 |
|
| 34 |
-
load_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 |
|