Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccomb authored Jun 7, 2024
1 parent c4839b5 commit 8dc9549
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@
pass

# Take the dicts, make a dataframe, make a dataset, and upload it
print("creating dataframe")
df = pandas.DataFrame().from_dict(awards)
print("creating dataset")
ds = datasets.Dataset.from_pandas(df)
print("pushing to hub")
ds.push_to_hub(
"ccm/nsf-awards", token=HF_TOKEN
)

0 comments on commit 8dc9549

Please sign in to comment.