israelweiss commited on
Commit
ca9ec31
·
1 Parent(s): 4aee494

token as secret and not public

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from io import BytesIO
8
  import io
9
  import base64
10
 
11
- hf_token = os.environ.get("HF_TOKEN")
12
  auth_headers = {"api_token": hf_token}
13
 
14
  def convert_mask_image_to_base64_string(mask_image):
 
8
  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):