import os import gradio as gr from huggingface_hub import login from playground_app import demo as playground_tab auth_token = os.environ.get("HF_TOKEN", None) if auth_token: login(token=auth_token) title = """
Tokenization Playground
""" with gr.Blocks() as demo: gr.HTML(f"

{title}

") playground_tab.render() if __name__ == "__main__": demo.launch(share=True)