assaomri commited on
Commit
c74ad90
·
verified ·
1 Parent(s): 0ef8374

Sync from Bria-AI/huggingface-demos @ af3fac2

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ import io
9
  import base64
10
 
11
  hf_token = os.environ.get("HF_TOKEN_API_DEMO") # we get it from a secret env variable, such that it's private
12
- auth_headers = {"api_token": hf_token}
13
 
14
  def convert_mask_image_to_base64_string(mask_image):
15
  buffer = io.BytesIO()
 
9
  import base64
10
 
11
  hf_token = os.environ.get("HF_TOKEN_API_DEMO") # we get it from a secret env variable, such that it's private
12
+ auth_headers = {"api_token": hf_token, "User-Agent": "BriaHFSpace/generative-fill"}
13
 
14
  def convert_mask_image_to_base64_string(mask_image):
15
  buffer = io.BytesIO()