feministmystique commited on
Commit
3fce44a
·
verified ·
1 Parent(s): cf8eb28

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +18 -18
src/streamlit_app.py CHANGED
@@ -128,24 +128,24 @@ with st.container():
128
  with st.container():
129
  st.info(st.session_state.response)
130
 
131
- if st.session_state.button_clicked == "Explain the question":
132
- col1, col2, col3 = st.columns([1, 1, 1])
133
- with col2:
134
- st.markdown(
135
- """
136
- <style>
137
- div.stButton > button {
138
- width: 250px!important;
139
- }
140
- </style>
141
- """,
142
- unsafe_allow_html=True,
143
- )
144
- if st.button("I don't understand. Try again.", key="retry_button"):
145
- st.session_state.retry_count += 1
146
- alt_llm = get_llm(temperature=0.9)
147
- st.session_state.response = alt_llm.invoke(st.session_state.full_prompt)
148
- st.info(st.session_state.response)
149
 
150
  # Footer spacing
151
  st.markdown("<br><br>", unsafe_allow_html=True)
 
128
  with st.container():
129
  st.info(st.session_state.response)
130
 
131
+ # if st.session_state.button_clicked == "Explain the question":
132
+ # col1, col2, col3 = st.columns([1, 1, 1])
133
+ # with col2:
134
+ # st.markdown(
135
+ # """
136
+ # <style>
137
+ # div.stButton > button {
138
+ # width: 250px!important;
139
+ # }
140
+ # </style>
141
+ # """,
142
+ # unsafe_allow_html=True,
143
+ # )
144
+ # if st.button("I don't understand. Try again.", key="retry_button"):
145
+ # st.session_state.retry_count += 1
146
+ # alt_llm = get_llm(temperature=0.9)
147
+ # st.session_state.response = alt_llm.invoke(st.session_state.full_prompt)
148
+ # st.info(st.session_state.response)
149
 
150
  # Footer spacing
151
  st.markdown("<br><br>", unsafe_allow_html=True)