Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
'
|
50 |
value=st.session_state.text,
|
51 |
-
height=
|
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"
|
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"])
|