Update src/streamlit_app.py

#5
Files changed (1) hide show
  1. src/streamlit_app.py +15 -15
src/streamlit_app.py CHANGED
@@ -19,12 +19,12 @@ os.environ["GOOGLE_API_KEY"]= os.getenv('GOOGLE_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
- # load_css('CSS/style.css')
28
 
29
  #setting up LLM
30
  llm = ChatGroq(
@@ -119,15 +119,15 @@ elif input_method == "Get Ques from Doc":
119
 
120
 
121
  response = retrieval_chain.invoke({'input': prompt2})
122
- response['answer']
123
 
124
- # #Get the respose in the card
125
- # st.markdown(
126
- # f"""
127
- # <div class="card">
128
- # <div class="response">{response['answer']}</div>
129
- # </div>
130
- # """,
131
- # unsafe_allow_html=True,
132
- # )
 
133
 
 
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
+ load_css('CSS/style.css')
28
 
29
  #setting up LLM
30
  llm = ChatGroq(
 
119
 
120
 
121
  response = retrieval_chain.invoke({'input': prompt2})
 
122
 
123
+
124
+ #Get the respose in the card
125
+ st.markdown(
126
+ f"""
127
+ <div class="card">
128
+ <div class="response">{response['answer']}</div>
129
+ </div>
130
+ """,
131
+ unsafe_allow_html=True,
132
+ )
133