MCPcopy Create free account
hub / github.com/Netflix/void-model / _update_edition_api

Function _update_edition_api

videox_fun/api/api.py:25–39  ·  view source on GitHub ↗
(
        datas: dict,
    )

Source from the content-addressed store, hash-verified

23def update_edition_api(_: gr.Blocks, app: FastAPI, controller):
24 @app.post("/videox_fun/update_edition")
25 def _update_edition_api(
26 datas: dict,
27 ):
28 edition = datas.get('edition', 'v2')
29
30 try:
31 controller.update_edition(
32 edition
33 )
34 comment = "Success"
35 except Exception as e:
36 torch.cuda.empty_cache()
37 comment = f"Error. error information is {str(e)}"
38
39 return {"message": comment}
40
41def update_diffusion_transformer_api(_: gr.Blocks, app: FastAPI, controller):
42 @app.post("/videox_fun/update_diffusion_transformer")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected