patrickvonplaten commited on
Commit
62d55e9
1 Parent(s): 0acccaf
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -66,6 +66,7 @@ with open(DATA_FILE, "r") as f:
66
 
67
  int_downloads = np.array([int(x.replace(",", "")) for x in dataframe["num_downloads"].values])
68
 
 
69
  # print top 20 downloads
70
  source = pd.DataFrame({
71
  'Number of total downloads': int_downloads[:20],
@@ -75,7 +76,7 @@ bar_chart = alt.Chart(source).mark_bar().encode(
75
  y="Number of total downloads",
76
  x=alt.X("Model architecture name", sort=None),
77
  )
78
- st.title(f'Top 20 downloads for year {year} and week {week}')
79
  st.altair_chart(bar_chart, use_container_width=True)
80
 
81
  # print bottom 20 downloads
@@ -87,9 +88,9 @@ bar_chart = alt.Chart(source).mark_bar().encode(
87
  y="Number of total downloads",
88
  x=alt.X("Model architecture name", sort=None),
89
  )
90
- st.title(f'Bottom 20 downloads for year {year} and week {week}')
91
  st.altair_chart(bar_chart, use_container_width=True)
92
 
93
  # print all stats
94
- st.title(f'All downloads for year {year} and week {week}')
95
  st.table(dataframe)
 
66
 
67
  int_downloads = np.array([int(x.replace(",", "")) for x in dataframe["num_downloads"].values])
68
 
69
+ st.title(f"Transformers stats for year {year} and week {week}")
70
  # print top 20 downloads
71
  source = pd.DataFrame({
72
  'Number of total downloads': int_downloads[:20],
 
76
  y="Number of total downloads",
77
  x=alt.X("Model architecture name", sort=None),
78
  )
79
+ st.title("Top 20 downloads last 30 days")
80
  st.altair_chart(bar_chart, use_container_width=True)
81
 
82
  # print bottom 20 downloads
 
88
  y="Number of total downloads",
89
  x=alt.X("Model architecture name", sort=None),
90
  )
91
+ st.title("Bottom 20 downloads last 30 days")
92
  st.altair_chart(bar_chart, use_container_width=True)
93
 
94
  # print all stats
95
+ st.title("All stats last 30 days")
96
  st.table(dataframe)