fsadeek's picture
setup a multipage web application
08c68bc
raw
history blame
645 Bytes
import gradio as gr
with gr.Blocks(fill_height=True) as demo:
with gr.Sidebar():
gr.Markdown("# Inference Provider")
gr.Markdown("This Space showcases the google/gemma-2-2b-it model, served by the nebius API. Sign in with your Hugging Face account to use this API.")
button = gr.LoginButton("Sign in")
gr.load("models/google/gemma-2-2b-it", accept_token=button, provider="nebius")
with demo.route("Interface") as incrementer_demo:
gr.Markdown("This is the second page")
gr.Textbox()
with demo.route("Test") as incrementer_demo:
gr.Markdown("This is the second page")
gr.Textbox()
demo.launch()