Skip to content

Commit c059433

Browse files
authored
Merge pull request #46 from NFDI4BIOIMAGE/45-follow-copyright-best-practices
Added Notebook to create README file for Huggingface
2 parents 2e8b8ef + 1c5ff4e commit c059433

4 files changed

+647
-7
lines changed

Caching_Zenodo_Records.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -3196,7 +3196,7 @@
31963196
"from caching import ensure_repo_exists, load_cache_dataset, append_rows_to_dataset, embed_text, embed_visual, embed_mixed, cache_hf\n",
31973197
"from datasets import concatenate_datasets, load_dataset\n",
31983198
"\n",
3199-
"repo_name = \"haesleinhuepf/SlightInsight_Cache\"\n",
3199+
"repo_name = \"ScaDS-AI/SlightInsight_Cache\"\n",
32003200
"for record_id in zenodo_ids:\n",
32013201
" cache_hf(record_id, token, use_openai, repo_name)"
32023202
]
@@ -3325,10 +3325,10 @@
33253325
}
33263326
],
33273327
"source": [
3328-
"from caching import load_hf_cache\n",
3328+
"from caching import load_single_hf_cache\n",
33293329
"import pandas as pd\n",
33303330
"\n",
3331-
"cached_data = load_hf_cache(\"10083555\", 3, repo_name=repo_name)\n",
3331+
"cached_data = load_single_hf_cache(\"10083555\", 3, repo_name=repo_name)\n",
33323332
"df = pd.DataFrame.from_dict([cached_data])\n",
33333333
"\n",
33343334
"df.head()"
@@ -3401,7 +3401,7 @@
34013401
"name": "python",
34023402
"nbconvert_exporter": "python",
34033403
"pygments_lexer": "ipython3",
3404-
"version": "3.11.11"
3404+
"version": "3.10.12"
34053405
}
34063406
},
34073407
"nbformat": 4,

0 commit comments

Comments
 (0)