Skip to content

Commit

Permalink
updated huggingface url
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinjue committed Nov 4, 2023
1 parent 13e8d0f commit e805aef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/db/DbProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const datasets = {
parquet: {
// huggingface
hfYtd:
'https://huggingface.co/datasets/edwinjue/311-data-2023/resolve/refs%2Fconvert%2Fparquet/default/train/0000.parquet', // year-to-date
'https://huggingface.co/datasets/edwinjue/311-data-2023/resolve/main/2023.parquet', // year-to-date
hfLastMonth:
'https://huggingface.co/datasets/edwinjue/311-data-last-month/resolve/refs%2Fconvert%2Fparquet/edwinjue--311-data-last-month/csv-train.parquet', // last month
},
Expand Down Expand Up @@ -49,14 +49,14 @@ const DbProvider = ({ children }) => {

await newDb.instantiate(
DUCKDB_CONFIG.mainModule,
DUCKDB_CONFIG.pthreadWorker,
DUCKDB_CONFIG.pthreadWorker
);

// register parquet
await newDb.registerFileURL(
'requests.parquet',
datasets.parquet.hfYtd,
4, // HTTP = 4. For more options: https://tinyurl.com/DuckDBDataProtocol
4 // HTTP = 4. For more options: https://tinyurl.com/DuckDBDataProtocol
);

// Create db connection
Expand Down

0 comments on commit e805aef

Please sign in to comment.