Skip to content

Commit

Permalink
fixup! feat: switch to new demo endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mtth committed Sep 8, 2024
1 parent 56c7d73 commit de9ce07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/examples/consecutive-shift-scheduling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"\n",
"logging.basicConfig(level=logging.INFO)\n",
"\n",
"client = opvious.Client.default(\"http://localhost:8080\", token=None) # After starting a local API\n",
"client = opvious.Client.from_environment(default_endpoint=opvious.DEMO_ENDPOINT)\n",
"\n",
"# Store the formulation on the server to be able to queue a solve below\n",
"specification = await client.register_specification(model.specification(), \"consecutive-shift-scheduling\")\n",
Expand Down
2 changes: 1 addition & 1 deletion resources/examples/fantasy-premier-league.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@
"import opvious\n",
"import pandas as pd\n",
"\n",
"_client = opvious.Client.default(\"http://localhost:8080\", token=None) # Replace `None` with your API access token\n",
"_client = opvious.Client.from_environment(default_endpoint=opvious.DEMO_ENDPOINT)\n",
"\n",
"async def find_optimal_squad(\n",
" substitution_factor=0.1,\n",
Expand Down
4 changes: 1 addition & 3 deletions resources/guides/uploading-a-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@
"source": [
"import opvious\n",
"\n",
"OPVIOUS_TOKEN = '' # Start a local API server and enter your API token here\n",
"\n",
"client = opvious.Client.default(\"http://localhost:8080\", token=OPVIOUS_TOKEN)\n",
"client = opvious.Client.from_environment(default_endpoint=opvious.DEMO_ENDPOINT)\n",
"\n",
"FORMULATION_NAME = \"bin-packing\"\n",
"\n",
Expand Down

0 comments on commit de9ce07

Please sign in to comment.