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

Create insights.py

Browse files
Files changed (1) hide show
  1. components/insights.py +29 -0
components/insights.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ from src.visualizations import build_coauthor_graph
4
+
5
+
6
+ def insights_section():
7
+
8
+ st.header("⚡ Research Insights")
9
+
10
+
11
+ if not st.session_state.papers:
12
+
13
+ st.info("Upload papers first.")
14
+ return
15
+
16
+
17
+ st.subheader(
18
+ "Co-author Network"
19
+ )
20
+
21
+ build_coauthor_graph(
22
+ st.session_state.papers
23
+ )
24
+
25
+
26
+ st.write(
27
+ "Total Papers:",
28
+ len(st.session_state.papers)
29
+ )