christopher commited on
Commit
719899a
β€’
1 Parent(s): f1a992b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -24,8 +24,14 @@ with col1:
24
  with col2:
25
  st.write('#')
26
  button_clicked = st.button("πŸ”Ž")
27
- with st.expander("🐈 About", expanded=False):
28
 
 
 
 
 
 
 
 
29
  st.markdown(
30
  """
31
  ```
@@ -44,10 +50,4 @@ with st.expander("🐈 About", expanded=False):
44
  }
45
  ```
46
  """
47
- )
48
-
49
- st.markdown("")
50
-
51
- if button_clicked:
52
- search_results = search_chat_noir(st.secrets["key"], search_query)
53
- st.components.v1.html(search_results[0].snippet.html)
 
24
  with col2:
25
  st.write('#')
26
  button_clicked = st.button("πŸ”Ž")
 
27
 
28
+
29
+ if button_clicked:
30
+ search_results = search_chat_noir(st.secrets["key"], search_query)
31
+ for result in search_results[:10]:
32
+ st.components.v1.html(result.snippet.html)
33
+
34
+ with st.expander("🐈 About", expanded=False):
35
  st.markdown(
36
  """
37
  ```
 
50
  }
51
  ```
52
  """
53
+ )