Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def swap_face(source_file, target_file, doFaceEnhancer, skey):
|
|
66 |
timestamp_now = int(datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).timestamp())
|
67 |
if timestamp_now - timestamp_requested > 20:
|
68 |
raise Exception(f"authkey timeout, {timestamp_now - timestamp_requested}")
|
69 |
-
|
70 |
source_path = "input.jpg"
|
71 |
target_path = "target.jpg"
|
72 |
|
|
|
66 |
timestamp_now = int(datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).timestamp())
|
67 |
if timestamp_now - timestamp_requested > 20:
|
68 |
raise Exception(f"authkey timeout, {timestamp_now - timestamp_requested}")
|
69 |
+
print(f"authkey pass, {timestamp_now - timestamp_requested}")
|
70 |
source_path = "input.jpg"
|
71 |
target_path = "target.jpg"
|
72 |
|