Write user-inputted data from app to csv in space directory

Hey world. I’m new to HuggingFace so forgive me if there is a simple solution for this, but I have looked around and have not found one as of yet. My app is a simple selection of a few structured text boxes, where the user should enter one word into each, then is recorded into a dictionary. Ideally I would like for this dictionary data to be added to the existing “wordle_humans.csv” file (basically appending an extra row per user entry to the df), and though my script for it runs, it doesn’t seems to actually be appending to/overwriting the existing .csv with the new data.

Link to app for context: https://huggingface.co/spaces/kmaurinjones/wordle_wizard_collection

Thank you in advance!