Upload agents/metadata_agent.py with huggingface_hub
Browse files- agents/metadata_agent.py +2 -3
agents/metadata_agent.py
CHANGED
|
@@ -193,10 +193,9 @@ ALL_TESTS=[d01_exif_completeness,d02_software_check,d03_ela,d04_ai_metadata,d05_
|
|
| 193 |
d06_watermark,d07_compression_ghost,d08_icc_profile,d09_color_space,
|
| 194 |
d10_gps_plausibility,d11_maker_note,d12_file_structure]
|
| 195 |
|
| 196 |
-
def run_metadata_agent(img):
|
| 197 |
from agents.utils import run_agent_tests
|
| 198 |
-
findings_raw, avg, conf, fail, rat = run_agent_tests(ALL_TESTS, img, "Metadata Agent")
|
| 199 |
-
# Extract ELA image for visual evidence
|
| 200 |
ela_img = None
|
| 201 |
for f in findings_raw:
|
| 202 |
if "ela_image" in f:
|
|
|
|
| 193 |
d06_watermark,d07_compression_ghost,d08_icc_profile,d09_color_space,
|
| 194 |
d10_gps_plausibility,d11_maker_note,d12_file_structure]
|
| 195 |
|
| 196 |
+
def run_metadata_agent(img, modality_adjustments=None):
|
| 197 |
from agents.utils import run_agent_tests
|
| 198 |
+
findings_raw, avg, conf, fail, rat = run_agent_tests(ALL_TESTS, img, "Metadata Agent", modality_adjustments)
|
|
|
|
| 199 |
ela_img = None
|
| 200 |
for f in findings_raw:
|
| 201 |
if "ela_image" in f:
|