medmac01 commited on
Commit
71831c5
·
1 Parent(s): 577d337
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -239,8 +239,8 @@ def main():
239
  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")
240
 
241
  # Add Google icon button to retrieve links
242
- if st.button(f"Double-Check Response", key=f"google_button_{i}"):
243
- search_query = get_search_query(st.session_state['generated'][i])
244
  retrieved_links = search_url(search_query)
245
  if retrieved_links:
246
  st.markdown("**Google Search Results:**")
 
239
  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")
240
 
241
  # Add Google icon button to retrieve links
242
+ if st.button(f"Double-Check Response", key="google_button"):
243
+ search_query = get_search_query(st.session_state['generated'][-1])
244
  retrieved_links = search_url(search_query)
245
  if retrieved_links:
246
  st.markdown("**Google Search Results:**")