Skip to content

Commit

Permalink
Update cookbooks (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverre authored Sep 10, 2024
1 parent 52375c8 commit f7d8dec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"\n",
" # Insert items into dataset\n",
" df = pd.read_parquet(\"hf://datasets/PatronusAI/HaluBench/data/test-00000-of-00001.parquet\")\n",
" df = df.sample(n=500, random_state=42)\n",
" df = df.sample(n=50, random_state=42)\n",
"\n",
" dataset_records = [\n",
" DatasetItem(\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
" response = requests.get(url)\n",
" df = pd.read_json(BytesIO(response.content), lines=True, compression='gzip')\n",
"\n",
" df = df.sample(n=500, random_state=42)\n",
" df = df.sample(n=50, random_state=42)\n",
" \n",
" dataset_records = []\n",
" for x in df.to_dict(orient=\"records\"):\n",
Expand Down

0 comments on commit f7d8dec

Please sign in to comment.