From aa5f9069a667d45dde83d0f297d7459af2072510 Mon Sep 17 00:00:00 2001 From: Matthieu Monsch Date: Sun, 8 Sep 2024 10:02:08 -0700 Subject: [PATCH] fixup! feat: switch to new demo endpoint --- .github/workflows/check-compatibility.yml | 4 ++-- resources/examples/sudoku.ipynb | 2 +- resources/guides/uploading-a-model.ipynb | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-compatibility.yml b/.github/workflows/check-compatibility.yml index e6767ea..708f1ed 100644 --- a/.github/workflows/check-compatibility.yml +++ b/.github/workflows/check-compatibility.yml @@ -10,8 +10,8 @@ on: - main paths-ignore: - '**/README.md' - schedule: - - cron: '5 */8 * * *' + # schedule: + # - cron: '5 */8 * * *' workflow_dispatch: {} jobs: image-api: diff --git a/resources/examples/sudoku.ipynb b/resources/examples/sudoku.ipynb index 09fff40..276e357 100644 --- a/resources/examples/sudoku.ipynb +++ b/resources/examples/sudoku.ipynb @@ -64,7 +64,7 @@ " .pivot_table(index='row', columns='column', values='value')\n", " .reindex(positions)\n", " .reindex(positions, axis=1)\n", - " .applymap(lambda v: str(int(v)) if v == v else '')\n", + " .map(lambda v: str(int(v)) if v == v else '')\n", " )" ] }, diff --git a/resources/guides/uploading-a-model.ipynb b/resources/guides/uploading-a-model.ipynb index fa686e4..ae5de2e 100644 --- a/resources/guides/uploading-a-model.ipynb +++ b/resources/guides/uploading-a-model.ipynb @@ -196,8 +196,11 @@ } ], "source": [ + "import os\n", "import requests\n", "\n", + "OPVIOUS_TOKEN = os.environ.get('OPVIOUS_TOKEN')\n", + "\n", "def minimum_bin_count(bin_max_weight, item_weights, version_tag='latest'):\n", " \"\"\"Returns the minimum number of bins needed to fit the input items\n", "\n",