diff --git a/notebooks/how-to-finetune-paligemma-on-detection-dataset.ipynb b/notebooks/how-to-finetune-paligemma-on-detection-dataset.ipynb index aff51bc..9c07219 100644 --- a/notebooks/how-to-finetune-paligemma-on-detection-dataset.ipynb +++ b/notebooks/how-to-finetune-paligemma-on-detection-dataset.ipynb @@ -324,6 +324,26 @@ "os.environ[\"KAGGLE_KEY\"] = userdata.get('KAGGLE_KEY')" ] }, + { + "cell_type": "code", + "source": [ + "#If you encounter issues with the cell above, please try using this one\n", + "!mkdir ~/.kaggle\n", + "!touch ~/.kaggle/kaggle.json\n", + "\n", + "api_token = {\"username\":\"KAGGLE_USERNAME\",\"key\":\"KAGGLE_KEY\"}\n", + "\n", + "import json\n", + "\n", + "with open('/root/.kaggle/kaggle.json', 'w') as file:\n", + " json.dump(api_token, file)" + ], + "metadata": { + "id": "Guzj8FG3QAHU" + }, + "execution_count": null, + "outputs": [] + }, { "cell_type": "markdown", "source": [ @@ -1751,4 +1771,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}