Sync from Bria-AI/huggingface-demos @ af3fac2
Browse files
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()
|