Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
#7
by
Uzaiir
- opened
- src/streamlit_app.py +12 -3
src/streamlit_app.py
CHANGED
|
@@ -19,13 +19,22 @@ os.environ["GOOGLE_API_KEY"]= os.getenv('GOOGLE_API_KEY')
|
|
| 19 |
|
| 20 |
#Loading CSS files
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
def load_css(file_name):
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
|
| 27 |
load_css('CSS/style.css')
|
| 28 |
|
|
|
|
|
|
|
| 29 |
#setting up LLM
|
| 30 |
llm = ChatGroq(
|
| 31 |
api_key=GROQ_API_KEY,
|
|
|
|
| 19 |
|
| 20 |
#Loading CSS files
|
| 21 |
|
| 22 |
+
# def load_css(file_name):
|
| 23 |
+
# with open(file_name) as f:
|
| 24 |
+
# css = f.read()
|
| 25 |
+
# st.markdown(f"<style>{css}</style>", unsafe_allow_html=True)
|
| 26 |
+
|
| 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 |
+
|
| 38 |
#setting up LLM
|
| 39 |
llm = ChatGroq(
|
| 40 |
api_key=GROQ_API_KEY,
|