Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def recognize_face(image_path):
|
|
23 |
if not SPACE_SUBDOMAIN:
|
24 |
raise ValueError("SPACE_SUBDOMAIN environment variable is not set")
|
25 |
|
26 |
-
#
|
27 |
image_url = f"https://{SPACE_SUBDOMAIN}.hf.space/file={image_path}"
|
28 |
|
29 |
# Set the URL to your FastAPI endpoint
|
|
|
23 |
if not SPACE_SUBDOMAIN:
|
24 |
raise ValueError("SPACE_SUBDOMAIN environment variable is not set")
|
25 |
|
26 |
+
# Construct the image URL using the full path
|
27 |
image_url = f"https://{SPACE_SUBDOMAIN}.hf.space/file={image_path}"
|
28 |
|
29 |
# Set the URL to your FastAPI endpoint
|