Spaces:
Sleeping
Sleeping
More improvements
Browse files
app.py
CHANGED
@@ -47,8 +47,18 @@ def display_data(df):
|
|
47 |
#### Number of papers with a Github link: {df['github'].notnull().sum()}
|
48 |
#### Number of papers with at least one HF artifact: {num_artifacts}
|
49 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
-
st.
|
|
|
52 |
hide_index=True,
|
53 |
column_order=("paper_page", "title", "github", "num_models", "num_datasets", "num_spaces"),
|
54 |
column_config={"github": st.column_config.LinkColumn(),
|
@@ -57,7 +67,7 @@ def display_data(df):
|
|
57 |
|
58 |
|
59 |
def main():
|
60 |
-
st.title("Hugging Face
|
61 |
|
62 |
# 2 tabs: one for daily data, one for weekly data
|
63 |
st.sidebar.title("Navigation")
|
@@ -87,7 +97,7 @@ def main():
|
|
87 |
|
88 |
df = df[df.index.date == day.date()]
|
89 |
|
90 |
-
st.write(f"Showing data for {day.strftime('%d/%m/%Y')}")
|
91 |
|
92 |
display_data(df)
|
93 |
|
@@ -122,7 +132,7 @@ def main():
|
|
122 |
year = int(year_str)
|
123 |
df = df[(df.index.month == month) & (df.index.year == year)]
|
124 |
|
125 |
-
st.write(f"Showing data for
|
126 |
|
127 |
display_data(df)
|
128 |
|
|
|
47 |
#### Number of papers with a Github link: {df['github'].notnull().sum()}
|
48 |
#### Number of papers with at least one HF artifact: {num_artifacts}
|
49 |
""")
|
50 |
+
|
51 |
+
st.write("Papers with at least one artifact")
|
52 |
+
df['has_artifact'] = (df['num_models'] > 0) | (df['num_datasets'] > 0) | (df['num_spaces'] > 0)
|
53 |
+
st.dataframe(df[df['has_artifact']],
|
54 |
+
hide_index=True,
|
55 |
+
column_order=("paper_page", "title", "github", "num_models", "num_datasets", "num_spaces"),
|
56 |
+
column_config={"github": st.column_config.LinkColumn(),
|
57 |
+
"paper_page": st.column_config.LinkColumn()},
|
58 |
+
width=2000)
|
59 |
|
60 |
+
st.write("Papers without artifacts")
|
61 |
+
st.dataframe(df[~df['has_artifact']],
|
62 |
hide_index=True,
|
63 |
column_order=("paper_page", "title", "github", "num_models", "num_datasets", "num_spaces"),
|
64 |
column_config={"github": st.column_config.LinkColumn(),
|
|
|
67 |
|
68 |
|
69 |
def main():
|
70 |
+
st.title("Hugging Face Artifacts KPI Dashboard")
|
71 |
|
72 |
# 2 tabs: one for daily data, one for weekly data
|
73 |
st.sidebar.title("Navigation")
|
|
|
97 |
|
98 |
df = df[df.index.date == day.date()]
|
99 |
|
100 |
+
st.write(f"Showing data for {day.day_name()} {day.strftime('%d/%m/%Y')}")
|
101 |
|
102 |
display_data(df)
|
103 |
|
|
|
132 |
year = int(year_str)
|
133 |
df = df[(df.index.month == month) & (df.index.year == year)]
|
134 |
|
135 |
+
st.write(f"Showing data for {month_str} {year_str}")
|
136 |
|
137 |
display_data(df)
|
138 |
|