abokbot commited on
Commit
d17e4ec
1 Parent(s): e674289

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -47,7 +47,7 @@ if 'text' not in st.session_state:
47
  st.session_state.text = ""
48
  st.markdown("Enter query")
49
  st_text_area = st.text_area(
50
- 'E.g. What is the capital city of Kenya? or Number of deputees in French parliement',
51
  value=st.session_state.text,
52
  height=25
53
  )
@@ -100,8 +100,8 @@ if st_search_button:
100
  st.subheader("Top-3 Search results")
101
  for i, result in enumerate(results):
102
  st.markdown(f"#### Result {i+1}")
103
- st.markdown("Score: " + str(result["score"]))
104
- st.markdown("Title: " + result["title"])
105
- st.markdown("First paragraph: " + result["abstract"])
106
- st.markdown("Link: (" + result["link"] + ")")
107
  st.text("")
 
47
  st.session_state.text = ""
48
  st.markdown("Enter query")
49
  st_text_area = st.text_area(
50
+ 'E.g. What is the hashing trick? or Largest city in Morocco',
51
  value=st.session_state.text,
52
  height=25
53
  )
 
100
  st.subheader("Top-3 Search results")
101
  for i, result in enumerate(results):
102
  st.markdown(f"#### Result {i+1}")
103
+ st.markdown("*Score:* " + str(result["score"]))
104
+ st.markdown("*Title:* " + result["title"])
105
+ st.markdown("*First paragraph:* " + result["abstract"])
106
+ st.markdown("*Link:* (" + result["link"] + ")")
107
  st.text("")