Neal Caren commited on
Commit
5cd0e47
·
1 Parent(s): b33016d
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -153,8 +153,17 @@ def search(query, top_k=50):
153
  for graph in graphs[:5]:
154
  # refind the Thesis
155
  thesis = re.findall('\*\*(.*?)\*\*', graph)[0]
156
- with st.expander(thesis):
157
- st.write(f'* {graph}')
 
 
 
 
 
 
 
 
 
158
  st.write('')
159
  # print("\t{:.3f}\t{}".format(hit['cross-score'], passages[hit['corpus_id']].replace("\n", " ")))
160
 
 
153
  for graph in graphs[:5]:
154
  # refind the Thesis
155
  thesis = re.findall('\*\*(.*?)\*\*', graph)[0]
156
+
157
+ tab1, tab2 = st.tabs(["Sentence", "Parapgraph"])
158
+
159
+ with tab1:
160
+ st.write(f'{thesis}')
161
+
162
+ with tab2:
163
+ st.write(f'* {graph}')
164
+
165
+ '''with st.expander(thesis):
166
+ st.write(f'* {graph}')'''
167
  st.write('')
168
  # print("\t{:.3f}\t{}".format(hit['cross-score'], passages[hit['corpus_id']].replace("\n", " ")))
169