disable all apis
Browse filesFiles changed (3)
10 unmodified lines11121314151610 unmodified lines],default_model="black-forest-labs/flux-depth-pro",src=replicate_gradio.registry,)if __name__ == "__main__":10 unmodified lines1112131415161710 unmodified lines],default_model="black-forest-labs/flux-depth-pro",src=replicate_gradio.registry,is_chat=False)if __name__ == "__main__":
8 unmodified lines910111213148 unmodified lines],default_model="fal-ai/ltx-video/image-to-video",src=fal_gradio.registry,)if __name__ == "__main__":8 unmodified lines91011121314158 unmodified lines],default_model="fal-ai/ltx-video/image-to-video",src=fal_gradio.registry,is_chat=False)if __name__ == "__main__":
7 unmodified lines891011121317 unmodified lines31323334353637387 unmodified linesdefault_model: str,src: Callable[[str, str | None], gr.Blocks] | Literal["models"],accept_token: bool = False,**kwargs,) -> gr.Blocks:def update_model(new_model: str) -> list[gr.Column]:17 unmodified linesqueue=False,)for k, v in list(demo.fns.items()):if isinstance(v.api_name, str) and "chat" in v.api_name:del demo.fns[k]return demo7 unmodified lines89101112131417 unmodified lines32333435363738394041427 unmodified linesdefault_model: str,src: Callable[[str, str | None], gr.Blocks] | Literal["models"],accept_token: bool = False,is_chat: bool = True,**kwargs,) -> gr.Blocks:def update_model(new_model: str) -> list[gr.Column]:17 unmodified linesqueue=False,)if not is_chat:demo.fns = {}else:for k, v in list(demo.fns.items()):if isinstance(v.api_name, str) and "chat" in v.api_name:del demo.fns[k]return demo
app_flux.py+1
app_ltx_video.py+1
utils.py+7-3