(
datas: dict,
)
| 23 | def 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 | |
| 41 | def update_diffusion_transformer_api(_: gr.Blocks, app: FastAPI, controller): |
| 42 | @app.post("/videox_fun/update_diffusion_transformer") |
nothing calls this directly
no outgoing calls
no test coverage detected