Spaces:
Sleeping
Sleeping
Update src/visualizations.py
Browse files- src/visualizations.py +5 -0
src/visualizations.py
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
def generate_wordcloud(papers):
|
| 2 |
text = " ".join([p.get("abstract", "") for p in papers if p.get("abstract")])
|
| 3 |
if not text:
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import matplotlib.pyplot as plt
|
| 3 |
+
from wordcloud import WordCloud, STOPWORDS
|
| 4 |
+
import networkx as nx
|
| 5 |
+
import plotly.graph_objects as go
|
| 6 |
def generate_wordcloud(papers):
|
| 7 |
text = " ".join([p.get("abstract", "") for p in papers if p.get("abstract")])
|
| 8 |
if not text:
|