Clarifying the secrets
This commit is contained in:
@@ -241,6 +241,14 @@
|
||||
"\n",
|
||||
"You can also build REST endpoints easily, although we won't cover that as we'll be calling direct from Python.\n",
|
||||
"\n",
|
||||
"## Important note about secrets\n",
|
||||
"\n",
|
||||
"In both the files `pricer_service.py` and `pricer_service2.py` you will find code like this near the top: \n",
|
||||
"`secrets = [modal.Secret.from_name(\"hf-secret\")]` \n",
|
||||
"You may need to change from `hf-secret` to `huggingface-secret` depending on how the Secret is configured in modal. \n",
|
||||
"To check, visit this page and look in the first column: \n",
|
||||
"https://modal.com/secrets/\n",
|
||||
"\n",
|
||||
"## Important note for Windows people:\n",
|
||||
"\n",
|
||||
"On the next line, I call `modal deploy` from within Jupyter lab; I've heard that on some versions of Windows this gives a strange unicode error because modal prints emojis to the output which can't be displayed. If that happens to you, simply use an Anaconda Prompt window or a Powershell instead, with your environment activated, and type `modal deploy pricer_service` there. Follow the same approach the next time we do `!modal deploy` too.\n",
|
||||
|
||||
Reference in New Issue
Block a user