Disable api
Browse filesFiles changed (3)
- app_flux.py+2-3
- app_ltx_video.py+1-2
- utils.py+2-8
123451 unmodified line7891011121314151617import osimport replicate_gradiofrom utils import get_appdemo = get_app(1 unmodified line"black-forest-labs/flux-depth-pro","black-forest-labs/flux-canny-pro","black-forest-labs/flux-fill-pro","black-forest-labs/flux-depth-dev"],default_model="black-forest-labs/flux-depth-pro",src=replicate_gradio.registry,is_chat=False)if __name__ == "__main__":123451 unmodified line78910111213141516import replicate_gradiofrom utils import get_appdemo = get_app(1 unmodified line"black-forest-labs/flux-depth-pro","black-forest-labs/flux-canny-pro","black-forest-labs/flux-fill-pro","black-forest-labs/flux-depth-dev",],default_model="black-forest-labs/flux-depth-pro",src=replicate_gradio.registry,)if __name__ == "__main__":
123453 unmodified lines9101112131415import osimport fal_gradiofrom utils import get_appdemo = get_app(3 unmodified lines],default_model="fal-ai/ltx-video/image-to-video",src=fal_gradio.registry,is_chat=False)if __name__ == "__main__":123453 unmodified lines91011121314import fal_gradiofrom utils import get_appdemo = get_app(3 unmodified lines],default_model="fal-ai/ltx-video/image-to-video",src=fal_gradio.registry,)if __name__ == "__main__":
7 unmodified lines89101112131417 unmodified lines3233343536373839404142437 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:for k in list(demo.fns.keys()):del demo.fns[k]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 demo7 unmodified lines891011121317 unmodified lines313233343536377 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 fn in demo.fns.values():fn.api_name = Falsereturn demo
app_flux.py+2-3
app_ltx_video.py+1-2
utils.py+2-8