abokbot commited on
Commit
e674289
·
1 Parent(s): 5119cdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -45,10 +45,11 @@ st_model_load.text("")
45
 
46
  if 'text' not in st.session_state:
47
  st.session_state.text = ""
 
48
  st_text_area = st.text_area(
49
- 'Enter query (e.g. What is the capital city of Kenya? or Number of deputees in French parliement)',
50
  value=st.session_state.text,
51
- height=50
52
  )
53
 
54
 
@@ -98,7 +99,7 @@ if st_search_button:
98
  results = search()
99
  st.subheader("Top-3 Search results")
100
  for i, result in enumerate(results):
101
- st.markdown(f"### Result {i+1}")
102
  st.markdown("Score: " + str(result["score"]))
103
  st.markdown("Title: " + result["title"])
104
  st.markdown("First paragraph: " + result["abstract"])
 
45
 
46
  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
  )
54
 
55
 
 
99
  results = search()
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"])