kolaslab commited on
Commit
b3176eb
·
verified ·
1 Parent(s): 6f60aa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -560,6 +560,23 @@ if username:
560
 
561
  make_calendar_heatmap(all_df, "All Commits", selected_year)
562
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563
  # Metrics and heatmaps for each selected type
564
  cols = st.columns(len(types_to_fetch)) if types_to_fetch else st.columns(1)
565
 
 
560
 
561
  make_calendar_heatmap(all_df, "All Commits", selected_year)
562
 
563
+ # Add followers chart section
564
+ st.subheader(f"👥 Follower Evolution for {username}")
565
+ followers_container = st.container()
566
+ with followers_container:
567
+ # Create iframe to embed the external follower visualization
568
+ iframe_html = f"""
569
+ <iframe
570
+ src="/index.html?username={username}"
571
+ width="100%"
572
+ height="500px"
573
+ style="border:none;box-shadow:0px 0px 10px rgba(0,0,0,0.1);border-radius:10px;"
574
+ allowfullscreen>
575
+ </iframe>
576
+ """
577
+ st.markdown(iframe_html, unsafe_allow_html=True)
578
+ st.caption("Follower evolution data from Hugging Face. The chart displays how followers have changed over time.")
579
+
580
  # Metrics and heatmaps for each selected type
581
  cols = st.columns(len(types_to_fetch)) if types_to_fetch else st.columns(1)
582