Spaces:
Runtime error
Runtime error
ivan-savchuk
commited on
Commit
Β·
09f0fe7
1
Parent(s):
cbd24a5
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ if __name__ == "__main__":
|
|
82 |
# cropped answer
|
83 |
doc = results[0]["doc"][:150] + "..."
|
84 |
# and url to the full answer
|
85 |
-
url =
|
86 |
# then we display it
|
87 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
88 |
|
@@ -91,7 +91,7 @@ if __name__ == "__main__":
|
|
91 |
# cropped answer
|
92 |
doc = results[1]["doc"][:150] + "..."
|
93 |
# and url to the full answer
|
94 |
-
url =
|
95 |
# then we display it
|
96 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
97 |
|
@@ -100,7 +100,7 @@ if __name__ == "__main__":
|
|
100 |
# cropped answer
|
101 |
doc = results[2]["doc"][:150] + "..."
|
102 |
# and url to the full answer
|
103 |
-
url =
|
104 |
# then we display it
|
105 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
106 |
|
@@ -109,7 +109,7 @@ if __name__ == "__main__":
|
|
109 |
# cropped answer
|
110 |
doc = results[3]["doc"][:150] + "..."
|
111 |
# and url to the full answer
|
112 |
-
url =
|
113 |
# then we display it
|
114 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
115 |
|
@@ -118,7 +118,7 @@ if __name__ == "__main__":
|
|
118 |
# cropped answer
|
119 |
doc = results[4]["doc"][:150] + "..."
|
120 |
# and url to the full answer
|
121 |
-
url =
|
122 |
# then we display it
|
123 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
124 |
|
|
|
82 |
# cropped answer
|
83 |
doc = results[0]["doc"][:150] + "..."
|
84 |
# and url to the full answer
|
85 |
+
url = results[0]["url"]
|
86 |
# then we display it
|
87 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
88 |
|
|
|
91 |
# cropped answer
|
92 |
doc = results[1]["doc"][:150] + "..."
|
93 |
# and url to the full answer
|
94 |
+
url = results[1]["url"]
|
95 |
# then we display it
|
96 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
97 |
|
|
|
100 |
# cropped answer
|
101 |
doc = results[2]["doc"][:150] + "..."
|
102 |
# and url to the full answer
|
103 |
+
url = results[2]["url"]
|
104 |
# then we display it
|
105 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
106 |
|
|
|
109 |
# cropped answer
|
110 |
doc = results[3]["doc"][:150] + "..."
|
111 |
# and url to the full answer
|
112 |
+
url = results[3]["url"]
|
113 |
# then we display it
|
114 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
115 |
|
|
|
118 |
# cropped answer
|
119 |
doc = results[4]["doc"][:150] + "..."
|
120 |
# and url to the full answer
|
121 |
+
url = results[4]["url"]
|
122 |
# then we display it
|
123 |
st.markdown(f"{doc}\n[<span style=\"color:blue\">**Read More**</span>]({url})\n")
|
124 |
|