Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|
104 |
-
st.markdown("Title
|
105 |
-
st.markdown("First paragraph
|
106 |
-
st.markdown("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("")
|