Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,3 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
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")
|
|
|
|
|
|
|
|
|
|
|
|
|
|