import gradio as gr from text_to_animation.model import ControlAnimationModel from webui.app_control_animation import create_demo as create_demo_animation import argparse import os import jax.numpy as jnp huggingspace_name = os.environ.get("SPACE_AUTHOR_NAME") on_huggingspace = huggingspace_name if huggingspace_name is not None else False model = ControlAnimationModel(dtype=jnp.float16) parser = argparse.ArgumentParser() parser.add_argument( "--public_access", action="store_true", help="if enabled, the app can be access from a public url", default=False, ) args = parser.parse_args() title = """
For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.