Spaces:
Sleeping
Sleeping
Download components/insights.py from bano1/LitReviewAI: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/bano1/LitReviewAI/resolve/main/components/insights.py
- Command line
-
hf download hf://spaces/bano1/LitReviewAI/components/insights.py
-
curl -L -o insights.py https://huggingface.co/spaces/bano1/LitReviewAI/resolve/main/components/insights.py
438 Bytes
| import streamlit as st | |
| from src.visualizations import build_coauthor_graph | |
| def insights_section(): | |
| st.header("⚡ Research Insights") | |
| if not st.session_state.papers: | |
| st.info("Upload papers first.") | |
| return | |
| st.subheader( | |
| "Co-author Network" | |
| ) | |
| build_coauthor_graph( | |
| st.session_state.papers | |
| ) | |
| st.write( | |
| "Total Papers:", | |
| len(st.session_state.papers) | |
| ) |