Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -312,7 +312,7 @@ def update_data():
|
|
312 |
client = PBSPublicDataAPIClient("2384af7c667342ceb5a736fe29f1dc6b", rate_limit=0.2)
|
313 |
try:
|
314 |
data = client.fetch_rheumatology_biologics_data()
|
315 |
-
client.save_data_to_hf(data,
|
316 |
print("Data updated successfully")
|
317 |
global biologics_data
|
318 |
biologics_data = load_data()
|
|
|
312 |
client = PBSPublicDataAPIClient("2384af7c667342ceb5a736fe29f1dc6b", rate_limit=0.2)
|
313 |
try:
|
314 |
data = client.fetch_rheumatology_biologics_data()
|
315 |
+
client.save_data_to_hf(data, HF_TOKEN, DATASET_NAME)
|
316 |
print("Data updated successfully")
|
317 |
global biologics_data
|
318 |
biologics_data = load_data()
|