Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ Additionally, the model was tasked with finding the topic of each cluster.
|
|
16 |
""")
|
17 |
|
18 |
@st.cache_data
|
19 |
-
def load_data(
|
20 |
ds = load_dataset("HuggingFaceTB/FW_clusters_free_topics", split="train", token=HF_TOKEN, num_proc=2)
|
21 |
ds = ds.filter(lambda x: x['educational_score'] <= max_score and x['educational_score'] >= min_score)
|
22 |
return ds
|
|
|
16 |
""")
|
17 |
|
18 |
@st.cache_data
|
19 |
+
def load_data(min_score=1, max_score=10):
|
20 |
ds = load_dataset("HuggingFaceTB/FW_clusters_free_topics", split="train", token=HF_TOKEN, num_proc=2)
|
21 |
ds = ds.filter(lambda x: x['educational_score'] <= max_score and x['educational_score'] >= min_score)
|
22 |
return ds
|