updates
Browse files
main.py
CHANGED
@@ -115,7 +115,7 @@ def verify_image(fileUpload: UploadFile):
|
|
115 |
|
116 |
if c2pa == 'true':
|
117 |
fileupload_extension = file_extension(fileUpload.filename)
|
118 |
-
filename = str(uuid.uuid4()) + fileupload_extension
|
119 |
|
120 |
response = subprocess.check_output(
|
121 |
[
|
@@ -125,11 +125,11 @@ def verify_image(fileUpload: UploadFile):
|
|
125 |
]
|
126 |
)
|
127 |
|
128 |
-
result_media =
|
129 |
|
130 |
elif original_media != 'n/a':
|
131 |
original_media_extension = file_extension(original_media)
|
132 |
-
filename = str(uuid.uuid4()) + original_media_extension
|
133 |
|
134 |
response = subprocess.check_output(
|
135 |
[
|
|
|
115 |
|
116 |
if c2pa == 'true':
|
117 |
fileupload_extension = file_extension(fileUpload.filename)
|
118 |
+
filename = str(uuid.uuid4()) + "." + fileupload_extension
|
119 |
|
120 |
response = subprocess.check_output(
|
121 |
[
|
|
|
125 |
]
|
126 |
)
|
127 |
|
128 |
+
result_media = filename
|
129 |
|
130 |
elif original_media != 'n/a':
|
131 |
original_media_extension = file_extension(original_media)
|
132 |
+
filename = str(uuid.uuid4()) + "." + original_media_extension
|
133 |
|
134 |
response = subprocess.check_output(
|
135 |
[
|