Spaces:
Sleeping
Sleeping
Update appStore/prep_data.py
Browse files- appStore/prep_data.py +1 -1
appStore/prep_data.py
CHANGED
@@ -71,7 +71,7 @@ def process_giz_worldwide():
|
|
71 |
giz_df = pd.read_json(f'{path_to_data}giz_worldwide/giz_worldwide_api_download_23_02_2025.json')
|
72 |
|
73 |
# Sample random rows for quick embeddings (seed set for reproducibility)
|
74 |
-
|
75 |
|
76 |
# Reset the index so that create_documents can iterate using integer indices
|
77 |
giz_df = giz_df.reset_index(drop=True)
|
|
|
71 |
giz_df = pd.read_json(f'{path_to_data}giz_worldwide/giz_worldwide_api_download_23_02_2025.json')
|
72 |
|
73 |
# Sample random rows for quick embeddings (seed set for reproducibility)
|
74 |
+
giz_df = giz_df.sample(n=30, random_state=42)
|
75 |
|
76 |
# Reset the index so that create_documents can iterate using integer indices
|
77 |
giz_df = giz_df.reset_index(drop=True)
|