AnonymousSub commited on
Commit
15cc699
·
verified ·
1 Parent(s): c84517a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -217,12 +217,12 @@ if st.button('Submit'):
217
  organize_out = read_from_file("organized_docs.json")
218
  gen_summary_dict = get_retrieved_results("gpt4o", 1, "fixed", train_list, test_list, False, organize_out)
219
  for i in range(len(gen_summary_dict)):
220
- highlighted_summary = highlight_sentences(gen_summary_dict[i], test_list[i]['abstract'])
221
  slides_list.append(get_slide(topics_list[i], gen_summary_dict[i]))
222
  # generate_list.append(.format(topics_list[i], gen_summary_dict[i]))
223
  st.markdown(f"## {topics_list[i]}")
224
- # st.markdown(f"*{gen_summary_dict[i]}*")
225
- st.markdown(highlighted_summary, unsafe_allow_html=True)
226
  st.header("Generated Narrative")
227
  for i in range(len(slides_list)):
228
  st.markdown("---")
 
217
  organize_out = read_from_file("organized_docs.json")
218
  gen_summary_dict = get_retrieved_results("gpt4o", 1, "fixed", train_list, test_list, False, organize_out)
219
  for i in range(len(gen_summary_dict)):
220
+ # highlighted_summary = highlight_sentences(gen_summary_dict[i], test_list[i]['abstract'])
221
  slides_list.append(get_slide(topics_list[i], gen_summary_dict[i]))
222
  # generate_list.append(.format(topics_list[i], gen_summary_dict[i]))
223
  st.markdown(f"## {topics_list[i]}")
224
+ st.markdown(f"{gen_summary_dict[i]}")
225
+ # st.markdown(highlighted_summary, unsafe_allow_html=True)
226
  st.header("Generated Narrative")
227
  for i in range(len(slides_list)):
228
  st.markdown("---")