Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,10 +11,11 @@ import torch
|
|
11 |
from transformers import pipeline
|
12 |
|
13 |
model_name = "bmas10/DeepSeek-Llama-8-GGUF"
|
|
|
14 |
messages = [
|
15 |
{"role": "user", "content": "Who are you?"},
|
16 |
]
|
17 |
-
pipe = pipeline("text-generation", model=
|
18 |
pipe(messages)
|
19 |
|
20 |
|
|
|
11 |
from transformers import pipeline
|
12 |
|
13 |
model_name = "bmas10/DeepSeek-Llama-8-GGUF"
|
14 |
+
model = AutoModel.from_pretrained(model_name)
|
15 |
messages = [
|
16 |
{"role": "user", "content": "Who are you?"},
|
17 |
]
|
18 |
+
pipe = pipeline("text-generation", model=model)
|
19 |
pipe(messages)
|
20 |
|
21 |
|