bano1 commited on
Commit
a9177c5
·
verified ·
1 Parent(s): 1a8cbd9

Create summaries.py

Browse files
Files changed (1) hide show
  1. components/summaries.py +48 -0
components/summaries.py ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+
4
+
5
+ def summary_section():
6
+
7
+ st.header("📑 Paper Summaries")
8
+
9
+
10
+ if not st.session_state.papers:
11
+
12
+ st.info("Upload papers first.")
13
+ return
14
+
15
+
16
+ for i, paper in enumerate(
17
+ st.session_state.papers,
18
+ start=1
19
+ ):
20
+
21
+ with st.expander(
22
+ f"{i}. {paper['title']}"
23
+ ):
24
+
25
+ st.write(
26
+ "Authors:",
27
+ ", ".join(paper["authors"])
28
+ )
29
+
30
+ st.write(
31
+ "Summary:",
32
+ paper["summary"]
33
+ )
34
+
35
+ st.write(
36
+ "Limitations:",
37
+ paper["limitations"]
38
+ )
39
+
40
+ st.write(
41
+ "Research gaps:",
42
+ paper["research_gaps"]
43
+ )
44
+
45
+ st.write(
46
+ "Keywords:",
47
+ paper["keywords"]
48
+ )