Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -229,16 +229,17 @@ def main():
229
 
230
  ## Conditional display of AI generated responses as a function of user provided prompts
231
  if submit_question:
232
- with response_container:
233
- if user_input:
234
- response = generate_response(user_input,str(selected_region), str(date))
235
- st.session_state.past.append(user_input)
236
- st.session_state.generated.append(response)
 
237
 
238
- if st.session_state['generated']:
239
- for i in range(len(st.session_state['generated'])):
240
- message(st.session_state['past'][i], is_user=True, key=str(i) + '_user', logo="https://i.pinimg.com/originals/d5/b2/13/d5b21384ccaaa6f9ef32986f17c50638.png")
241
- message(st.session_state["generated"][i], key=str(i), logo= "https://emojiisland.com/cdn/shop/products/Robot_Emoji_Icon_7070a254-26f7-4a54-8131-560e38e34c2e_large.png?v=1571606114")
242
 
243
  # Add Google icon button to retrieve links
244
  if st.button(f"Double-Check Response", key="google_button"):
 
229
 
230
  ## Conditional display of AI generated responses as a function of user provided prompts
231
  if submit_question:
232
+ st.write("This space is undergoing updates. It might not be accessible or fully functional.")
233
+ # with response_container:
234
+ # if user_input:
235
+ # response = generate_response(user_input,str(selected_region), str(date))
236
+ # st.session_state.past.append(user_input)
237
+ # st.session_state.generated.append(response)
238
 
239
+ # if st.session_state['generated']:
240
+ # for i in range(len(st.session_state['generated'])):
241
+ # message(st.session_state['past'][i], is_user=True, key=str(i) + '_user', logo="https://i.pinimg.com/originals/d5/b2/13/d5b21384ccaaa6f9ef32986f17c50638.png")
242
+ # message(st.session_state["generated"][i], key=str(i), logo= "https://emojiisland.com/cdn/shop/products/Robot_Emoji_Icon_7070a254-26f7-4a54-8131-560e38e34c2e_large.png?v=1571606114")
243
 
244
  # Add Google icon button to retrieve links
245
  if st.button(f"Double-Check Response", key="google_button"):