Spaces:
Runtime error
Runtime error
Neal Caren
commited on
Commit
·
4471b2f
1
Parent(s):
adcac3d
Expander v2
Browse files
app.py
CHANGED
|
@@ -150,8 +150,11 @@ def search(query, top_k=50):
|
|
| 150 |
for cite, graphs in hd.items():
|
| 151 |
cite = cite.replace(", ", '. "').replace(', Social ', '", Social ')
|
| 152 |
st.write(cite)
|
|
|
|
| 153 |
for graph in graphs[:5]:
|
| 154 |
-
|
|
|
|
|
|
|
| 155 |
st.write(f'* {graph}')
|
| 156 |
st.write('')
|
| 157 |
# print("\t{:.3f}\t{}".format(hit['cross-score'], passages[hit['corpus_id']].replace("\n", " ")))
|
|
|
|
| 150 |
for cite, graphs in hd.items():
|
| 151 |
cite = cite.replace(", ", '. "').replace(', Social ', '", Social ')
|
| 152 |
st.write(cite)
|
| 153 |
+
|
| 154 |
for graph in graphs[:5]:
|
| 155 |
+
# refind the Thesis
|
| 156 |
+
thesis = re.findall('\*\*(.*?)\*\*', graph)[0]
|
| 157 |
+
with st.expander(thesis):
|
| 158 |
st.write(f'* {graph}')
|
| 159 |
st.write('')
|
| 160 |
# print("\t{:.3f}\t{}".format(hit['cross-score'], passages[hit['corpus_id']].replace("\n", " ")))
|