Spaces:
Runtime error
Runtime error
Commit
·
d6691d2
1
Parent(s):
2bf3c18
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,10 @@ import tempfile
|
|
6 |
from PIL import Image
|
7 |
import traceback
|
8 |
|
|
|
9 |
# API details
|
10 |
API_URL = "https://api-inference.huggingface.co/models/SaladSlayer00/twin_matcher"
|
11 |
-
headers = {"Authorization":
|
12 |
|
13 |
# Function to query the API with an image file
|
14 |
def query(filename):
|
|
|
6 |
from PIL import Image
|
7 |
import traceback
|
8 |
|
9 |
+
token = os.getenv('TOKEN')
|
10 |
# API details
|
11 |
API_URL = "https://api-inference.huggingface.co/models/SaladSlayer00/twin_matcher"
|
12 |
+
headers = {"Authorization": "token"}
|
13 |
|
14 |
# Function to query the API with an image file
|
15 |
def query(filename):
|