def restart()

in community-efforts/prompt_translation/dashboard_template/app.py [0:0]


def restart() -> None:
    """
    This function restarts the space where the dashboard is hosted.
    """

    # Update Space name with your Space information
    gr.Info("Restarting space at " + str(datetime.datetime.now()))
    restart_space(
        "ignacioct/TryingRestartDashboard",
        token=os.getenv("HF_TOKEN"),
        # factory_reboot=True,
    )