Commit ·
ca9ec31
1
Parent(s): 4aee494
token as secret and not public
Browse files7 unmodified lines891011111213147 unmodified linesimport ioimport base64
hf_token = os.environ.get("HF_TOKEN")hf_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