MCPcopy Create free account
hub / github.com/VisionRush/DeepFakeDefenders / inter_api

Function inter_api

infer_api.py:21–25  ·  view source on GitHub ↗
(input_model: inputModel)

Source from the content-addressed store, hash-verified

19# Call model interface, post request
20@app.post("/inter_api")
21def inter_api(input_model: inputModel):
22 img_path = input_model.img_path
23 infer_api = INFER_API()
24 score = infer_api.test(img_path)
25 return score
26
27
28# run

Callers

nothing calls this directly

Calls 2

testMethod · 0.95
INFER_APIClass · 0.90

Tested by

no test coverage detected