bmas10 commited on
Commit
edf589b
·
verified ·
1 Parent(s): 7e7a085

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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=model_name)
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