diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index f263b37..a652270 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,4 +1,4 @@ -name: Sync to Hugging Face hub +name: Preview on Hugging Face on: pull_request: # to run this workflow manually from the Actions tab @@ -17,6 +17,6 @@ jobs: HF_TOKEN: ${{ secrets.HF_TOKEN }} run: | git remote add preview https://cboettig:$HF_TOKEN@huggingface.co/spaces/boettiger-lab/preview-ca-30x30 - git push --set-upstream preview HEAD:main + git push -f --set-upstream preview HEAD:main git remote rm preview diff --git a/app/app.py b/app/app.py index 8caef4e..3a59eb9 100644 --- a/app/app.py +++ b/app/app.py @@ -30,7 +30,7 @@ ## Create the table from remote parquet only if it doesn't already exist on disk -con = ibis.duckdb.connect(extensions=["spatial"]) +con = ibis.duckdb.connect("duck.db", extensions=["spatial"]) current_tables = con.list_tables() if "mydata" not in set(current_tables): tbl = con.read_parquet(ca_parquet)