MCPcopy
hub / github.com/abi/screenshot-to-code / call_replicate_version

Function call_replicate_version

backend/image_generation/replicate.py:135–142  ·  view source on GitHub ↗
(
    version: str, input: dict[str, Any], api_token: str
)

Source from the content-addressed store, hash-verified

133
134
135async def call_replicate_version(
136 version: str, input: dict[str, Any], api_token: str
137) -> Any:
138 return await _run_prediction(
139 f"{REPLICATE_API_BASE_URL}/predictions",
140 {"version": version, "input": input},
141 api_token,
142 )
143
144
145async def remove_background(image_url: str, api_token: str) -> str:

Callers 1

remove_backgroundFunction · 0.85

Calls 1

_run_predictionFunction · 0.85

Tested by

no test coverage detected