abidlabs HF Staff commited on
Commit
af316ec
·
verified ·
1 Parent(s): 06d0116

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,8 +1,10 @@
1
  import gradio as gr
2
 
3
  with gr.Blocks() as demo:
4
- button = gr.LoginButton("Sign in to use your Hugging Face Token")
5
- with gr.Column(variant="panel"):
6
- gr.load("facebook/bart-large-cnn", src="models")
 
 
7
 
8
  demo.launch()
 
1
  import gradio as gr
2
 
3
  with gr.Blocks() as demo:
4
+ with gr.Sidebar():
5
+ gr.Markdown("# Inference Provider")
6
+ gr.Markdown("This Space showcases the `distilbert/distilbert-base-uncased` model, served by the Hugging Face API. Sign in with your Hugging Face account to use this API.")
7
+ button = gr.LoginButton("Sign in")
8
+ gr.load("models/meta-llama/Llama-3.2-3B-Instruct", accept_token=button, provider="sambanova")
9
 
10
  demo.launch()