diff --git a/clothingRecommendationv2.ipynb b/clothingRecommendationv2.ipynb index 807da4c..7acec32 100644 --- a/clothingRecommendationv2.ipynb +++ b/clothingRecommendationv2.ipynb @@ -25,8 +25,19 @@ "outputs": [], "source": [ "from google.colab import files\n", - "# Upload kaggle.json\n", - "files.upload()" + "import json\n", + "import os\n", + "\n", + "# Upload kaggle.json file\n", + "uploaded = files.upload()\n", + "\n", + "# Load kaggle.json file\n", + "with open('kaggle.json') as f:\n", + " kaggle_config = json.load(f)\n", + "\n", + "# Set environment variables\n", + "os.environ['KAGGLE_USERNAME'] = kaggle_config['username']\n", + "os.environ['KAGGLE_KEY'] = kaggle_config['key']" ] }, {