Spaces:
Running
Running
israelweiss
commited on
Commit
·
ca9ec31
1
Parent(s):
4aee494
token as secret and not public
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from io import BytesIO
|
|
8 |
import io
|
9 |
import base64
|
10 |
|
11 |
-
hf_token = os.environ.get("
|
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):
|