| import gradio as gr | |
| with gr.Blocks(fill_height=True) as demo: | |
| with gr.Row(): | |
| with gr.Column(scale=1): | |
| # 这里放置侧边栏内容 | |
| gr.Markdown("# Inference Provider") | |
| with gr.Column(scale=3): | |
| # 主要内容区 | |
| gr.Markdown("This Space showcases the deepseek-ai/DeepSeek-R1 model, served by the sambanova API. Sign in with your Hugging Face account to use this API.") | |
| button = gr.LoginButton("Sign in") | |
| gr.load("models/deepseek-ai/DeepSeek-R1", accept_token=button, provider="sambanova") | |
| demo.launch() |