import spaces # must be imported before gradio on ZeroGPU import gradio as gr @spaces.GPU(duration=1) def _noop(): """ZeroGPU requires at least one decorated function; never called. Hy3 runs fully on DeepInfra's inference provider, so no GPU work happens here — this decorator exists only to satisfy the ZeroGPU runtime requirement. """ pass with gr.Blocks(fill_height=True, title="Hy3 Chat — Tencent") as demo: with gr.Sidebar(): button = gr.LoginButton("Sign in with Hugging Face to chat") gr.load( "models/tencent/Hy3", accept_token=button, provider="deepinfra", ) demo.launch()