Commit
·
b7e795a
1
Parent(s):
4b7a86f
New release
Browse files- README.md +1 -1
- changelog.md +3 -0
- models.py +10 -21
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 👀
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: blue
|
| 6 |
sdk: streamlit
|
| 7 |
-
sdk_version: 1.
|
| 8 |
app_file: models.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: blue
|
| 6 |
sdk: streamlit
|
| 7 |
+
sdk_version: 1.15.0
|
| 8 |
app_file: models.py
|
| 9 |
pinned: false
|
| 10 |
---
|
changelog.md
CHANGED
|
@@ -3,6 +3,9 @@ Changelog
|
|
| 3 |
Planned
|
| 4 |
- Allow filtering just for the new models (no way to get this atm)
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
v0.3 - Nov 25
|
| 7 |
- Rename Social Features tab
|
| 8 |
- Add chart of number of likes
|
|
|
|
| 3 |
Planned
|
| 4 |
- Allow filtering just for the new models (no way to get this atm)
|
| 5 |
|
| 6 |
+
v0.3.1 - Dec 6
|
| 7 |
+
- Use ST 1.15.0
|
| 8 |
+
|
| 9 |
v0.3 - Nov 25
|
| 10 |
- Rename Social Features tab
|
| 11 |
- Add chart of number of likes
|
models.py
CHANGED
|
@@ -10,7 +10,7 @@ from pipelines import filter_pipeline_data
|
|
| 10 |
|
| 11 |
def main():
|
| 12 |
# Pick revision at top
|
| 13 |
-
supported_revisions = ["28_11_22", "22_11_22", "14_11_22", "07_11_22", "31_10_22", "24_10_22", "17_10_22", "10_10_22", "27_09_22"]
|
| 14 |
col1, col2, col3 = st.columns(3)
|
| 15 |
with col1:
|
| 16 |
new = st.selectbox(
|
|
@@ -51,13 +51,9 @@ def main():
|
|
| 51 |
st.metric(label="Rate of change", value=curr_change, delta=delta)
|
| 52 |
|
| 53 |
# Tabs don't work in Spaces st version
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
| 57 |
-
'Topic of interest',
|
| 58 |
-
["Language","License", "Pipeline", "Social Features", "Libraries", "Model Cards", "Super Users", "Raw Data"])
|
| 59 |
-
|
| 60 |
-
if tab == "Language":
|
| 61 |
st.header("Languages info")
|
| 62 |
|
| 63 |
filtered_data = data.copy()
|
|
@@ -161,8 +157,7 @@ def main():
|
|
| 161 |
final_data['language'] = final_data['language'].astype(str)
|
| 162 |
st.dataframe(final_data)
|
| 163 |
|
| 164 |
-
|
| 165 |
-
if tab == "License":
|
| 166 |
st.header("License info")
|
| 167 |
|
| 168 |
no_license_count = data["license"].isna().sum()
|
|
@@ -238,8 +233,7 @@ def main():
|
|
| 238 |
final_data["diff"] = final_data["counts"] - final_data["old_c"]
|
| 239 |
st.dataframe(final_data)
|
| 240 |
|
| 241 |
-
|
| 242 |
-
if tab == "Pipeline":
|
| 243 |
st.header("Pipeline info")
|
| 244 |
|
| 245 |
tags = data["tags"].explode()
|
|
@@ -461,8 +455,7 @@ def main():
|
|
| 461 |
# todo : add activity metric
|
| 462 |
|
| 463 |
|
| 464 |
-
|
| 465 |
-
if tab == "Social Features":
|
| 466 |
st.header("Social Features")
|
| 467 |
|
| 468 |
columns_of_interest = ["prs_count", "prs_open", "prs_merged", "prs_closed", "discussions_count", "discussions_open", "discussions_closed"]
|
|
@@ -548,8 +541,7 @@ def main():
|
|
| 548 |
st.dataframe(filtered_data)
|
| 549 |
|
| 550 |
|
| 551 |
-
|
| 552 |
-
if tab == "Libraries":
|
| 553 |
st.header("Library info")
|
| 554 |
|
| 555 |
no_library_count = data["library"].isna().sum()
|
|
@@ -657,8 +649,7 @@ def main():
|
|
| 657 |
filtered_data = filtered_data[columns_of_interest]
|
| 658 |
st.dataframe(filtered_data)
|
| 659 |
|
| 660 |
-
|
| 661 |
-
if tab == "Model Cards":
|
| 662 |
st.header("Model cards")
|
| 663 |
|
| 664 |
columns_of_interest = ["has_model_index", "has_metadata", "has_text", "text_length"]
|
|
@@ -737,8 +728,7 @@ def main():
|
|
| 737 |
y=alt.X('tag', sort=None)
|
| 738 |
))
|
| 739 |
|
| 740 |
-
|
| 741 |
-
if tab == "Super Users":
|
| 742 |
st.header("Authors")
|
| 743 |
st.text("This info corresponds to the repos owned by the authors")
|
| 744 |
authors = data.groupby("author").sum().drop(["text_length", "Unnamed: 0"], axis=1).sort_values("downloads_30d", ascending=False)
|
|
@@ -748,8 +738,7 @@ def main():
|
|
| 748 |
)
|
| 749 |
st.dataframe(final_data)
|
| 750 |
|
| 751 |
-
|
| 752 |
-
if tab == "Raw Data":
|
| 753 |
st.header("Raw Data")
|
| 754 |
d = data.astype(str)
|
| 755 |
st.dataframe(d)
|
|
|
|
| 10 |
|
| 11 |
def main():
|
| 12 |
# Pick revision at top
|
| 13 |
+
supported_revisions = ["05_12_22", "28_11_22", "22_11_22", "14_11_22", "07_11_22", "31_10_22", "24_10_22", "17_10_22", "10_10_22", "27_09_22"]
|
| 14 |
col1, col2, col3 = st.columns(3)
|
| 15 |
with col1:
|
| 16 |
new = st.selectbox(
|
|
|
|
| 51 |
st.metric(label="Rate of change", value=curr_change, delta=delta)
|
| 52 |
|
| 53 |
# Tabs don't work in Spaces st version
|
| 54 |
+
tab1, tab2, tab3, tab4, tab5, tab6, tab7, tab8 = st.tabs(["Language", "License", "Pipeline", "Social Features", "Libraries", "Model Cards", "Super users", "Raw Data"])
|
| 55 |
|
| 56 |
+
with tab1:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
st.header("Languages info")
|
| 58 |
|
| 59 |
filtered_data = data.copy()
|
|
|
|
| 157 |
final_data['language'] = final_data['language'].astype(str)
|
| 158 |
st.dataframe(final_data)
|
| 159 |
|
| 160 |
+
with tab2:
|
|
|
|
| 161 |
st.header("License info")
|
| 162 |
|
| 163 |
no_license_count = data["license"].isna().sum()
|
|
|
|
| 233 |
final_data["diff"] = final_data["counts"] - final_data["old_c"]
|
| 234 |
st.dataframe(final_data)
|
| 235 |
|
| 236 |
+
with tab3:
|
|
|
|
| 237 |
st.header("Pipeline info")
|
| 238 |
|
| 239 |
tags = data["tags"].explode()
|
|
|
|
| 455 |
# todo : add activity metric
|
| 456 |
|
| 457 |
|
| 458 |
+
with tab4:
|
|
|
|
| 459 |
st.header("Social Features")
|
| 460 |
|
| 461 |
columns_of_interest = ["prs_count", "prs_open", "prs_merged", "prs_closed", "discussions_count", "discussions_open", "discussions_closed"]
|
|
|
|
| 541 |
st.dataframe(filtered_data)
|
| 542 |
|
| 543 |
|
| 544 |
+
with tab5:
|
|
|
|
| 545 |
st.header("Library info")
|
| 546 |
|
| 547 |
no_library_count = data["library"].isna().sum()
|
|
|
|
| 649 |
filtered_data = filtered_data[columns_of_interest]
|
| 650 |
st.dataframe(filtered_data)
|
| 651 |
|
| 652 |
+
with tab6:
|
|
|
|
| 653 |
st.header("Model cards")
|
| 654 |
|
| 655 |
columns_of_interest = ["has_model_index", "has_metadata", "has_text", "text_length"]
|
|
|
|
| 728 |
y=alt.X('tag', sort=None)
|
| 729 |
))
|
| 730 |
|
| 731 |
+
with tab7:
|
|
|
|
| 732 |
st.header("Authors")
|
| 733 |
st.text("This info corresponds to the repos owned by the authors")
|
| 734 |
authors = data.groupby("author").sum().drop(["text_length", "Unnamed: 0"], axis=1).sort_values("downloads_30d", ascending=False)
|
|
|
|
| 738 |
)
|
| 739 |
st.dataframe(final_data)
|
| 740 |
|
| 741 |
+
with tab8:
|
|
|
|
| 742 |
st.header("Raw Data")
|
| 743 |
d = data.astype(str)
|
| 744 |
st.dataframe(d)
|