Commit ·
ca9ec31
1
Parent(s): 4aee494
token as secret and not public
Browse files7 unmodified lines8910111213147 unmodified linesimport ioimport base64hf_token = os.environ.get("HF_TOKEN")auth_headers = {"api_token": hf_token}def convert_mask_image_to_base64_string(mask_image):7 unmodified lines8910111213147 unmodified linesimport ioimport base64hf_token = os.environ.get("HF_TOKEN_API_DEMO") # we get it from a secret env variable, such that it's privateauth_headers = {"api_token": hf_token}def convert_mask_image_to_base64_string(mask_image):
app.py+1-1