WesanCZE commited on
Commit
6c135d7
·
verified ·
1 Parent(s): d4a4c54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -1,10 +1,3 @@
1
- import gradio as gr
2
-
3
- with gr.Blocks(fill_height=True) as demo:
4
- with gr.Sidebar():
5
- gr.Markdown("# Inference Provider")
6
- gr.Markdown("This Space showcases the mistralai/Mistral-7B-Instruct-v0.3 model, served by the hf-inference API. Sign in with your HF中国镜像站 account to use this API.")
7
- button = gr.LoginButton("Sign in")
8
- gr.load("models/mistralai/Mistral-7B-Instruct-v0.3", accept_token=button, provider="hf-inference")
9
-
10
- demo.launch()
 
1
+ # Load model directly
2
+ from transformers import AutoModel
3
+ model = AutoModel.from_pretrained("deepseek-ai/Janus-Pro-7B")