LPX
commited on
Commit
·
0af824e
1
Parent(s):
01d0bd6
feat: prep MCP server
Browse files- app_mcp.py +3 -8
app_mcp.py
CHANGED
@@ -17,12 +17,6 @@ from utils.gradient import gradient_processing
|
|
17 |
from utils.minmax import preprocess as minmax_preprocess
|
18 |
from utils.ela import genELA as ELA
|
19 |
from forensics.registry import register_model, MODEL_REGISTRY, ModelEntry
|
20 |
-
import cv2
|
21 |
-
import tempfile
|
22 |
-
from utils.wavelet import wavelet_blocking_noise_estimation
|
23 |
-
from utils.bitplane import bit_plane_extractor
|
24 |
-
from utils.exif import exif_full_dump
|
25 |
-
|
26 |
|
27 |
# Configure logging
|
28 |
logging.basicConfig(level=logging.DEBUG)
|
@@ -433,5 +427,6 @@ with gr.Blocks(css="#post-gallery { overflow: hidden !important;} .grid-wrap{ ov
|
|
433 |
description="Extract all EXIF metadata from the uploaded image."
|
434 |
)
|
435 |
|
436 |
-
# Launch
|
437 |
-
|
|
|
|
17 |
from utils.minmax import preprocess as minmax_preprocess
|
18 |
from utils.ela import genELA as ELA
|
19 |
from forensics.registry import register_model, MODEL_REGISTRY, ModelEntry
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
# Configure logging
|
22 |
logging.basicConfig(level=logging.DEBUG)
|
|
|
427 |
description="Extract all EXIF metadata from the uploaded image."
|
428 |
)
|
429 |
|
430 |
+
# --- MCP-Ready Launch ---
|
431 |
+
if __name__ == "__main__":
|
432 |
+
demo.launch(mcp_server=True)
|