Sync from Bria-AI/huggingface-demos @ af3fac2
Browse files8 unmodified lines91011121314158 unmodified linesimport 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):buffer = io.BytesIO()8 unmodified lines91011121314158 unmodified linesimport 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, "User-Agent": "BriaHFSpace/generative-fill"}def convert_mask_image_to_base64_string(mask_image):buffer = io.BytesIO()
app.py+1-1