Spaces:
Sleeping
Sleeping
Commit
•
67b9f48
1
Parent(s):
feab763
readme name
Browse files
app.py
CHANGED
@@ -76,7 +76,6 @@ def load_data():
|
|
76 |
datasets = [add_created_data(dataset) for dataset in tqdm(datasets)]
|
77 |
filtered = [ds for ds in datasets if ds.get("cardData")]
|
78 |
filtered = [ds for ds in filtered if ds["created"] > get_three_months_ago()]
|
79 |
-
|
80 |
ds_with_len = thread_map(get_readme_len, filtered)
|
81 |
ds_with_len = [ds for ds in ds_with_len if ds is not None]
|
82 |
return ds_with_len
|
@@ -127,6 +126,10 @@ def filter_df_by_max_age(max_age_days=None):
|
|
127 |
return df
|
128 |
|
129 |
|
|
|
|
|
|
|
|
|
130 |
with gr.Blocks() as demo:
|
131 |
max_age_days = gr.Slider(
|
132 |
label="Max Age (days)", value=7, minimum=0, maximum=90, step=1, interactive=True
|
|
|
76 |
datasets = [add_created_data(dataset) for dataset in tqdm(datasets)]
|
77 |
filtered = [ds for ds in datasets if ds.get("cardData")]
|
78 |
filtered = [ds for ds in filtered if ds["created"] > get_three_months_ago()]
|
|
|
79 |
ds_with_len = thread_map(get_readme_len, filtered)
|
80 |
ds_with_len = [ds for ds in ds_with_len if ds is not None]
|
81 |
return ds_with_len
|
|
|
126 |
return df
|
127 |
|
128 |
|
129 |
+
def filter_by_readme_len(df, min_len=None, max_len=None):
|
130 |
+
pass
|
131 |
+
|
132 |
+
|
133 |
with gr.Blocks() as demo:
|
134 |
max_age_days = gr.Slider(
|
135 |
label="Max Age (days)", value=7, minimum=0, maximum=90, step=1, interactive=True
|