detect
Browse files
app.py
CHANGED
@@ -453,7 +453,7 @@ with gr.Blocks(title="FoldMark", css=custom_css) as demo:
|
|
453 |
#@spaces.GPU
|
454 |
def is_watermarked(file):
|
455 |
# Generate a unique subdirectory and filename
|
456 |
-
unique_id = str(uuid.uuid4())
|
457 |
subdir = os.path.join('./output', unique_id)
|
458 |
os.makedirs(subdir, exist_ok=True)
|
459 |
filename = f"{unique_id}.cif"
|
|
|
453 |
#@spaces.GPU
|
454 |
def is_watermarked(file):
|
455 |
# Generate a unique subdirectory and filename
|
456 |
+
unique_id = str(uuid.uuid4().hex[:8])
|
457 |
subdir = os.path.join('./output', unique_id)
|
458 |
os.makedirs(subdir, exist_ok=True)
|
459 |
filename = f"{unique_id}.cif"
|