raoufjat commited on
Commit
7399d75
1 Parent(s): da4991e

Update app.ipynb

Browse files
Files changed (1) hide show
  1. app.ipynb +8 -3
app.ipynb CHANGED
@@ -1,3 +1,8 @@
1
- # Load model directly
2
- from transformers import AutoModel
3
- model = AutoModel.from_pretrained("mradermacher/papaya-1B-GGUF")
 
 
 
 
 
 
1
+ # Use a pipeline as a high-level helper
2
+ from transformers import pipeline
3
+
4
+ messages = [
5
+ {"role": "user", "content": "Who are you?"},
6
+ ]
7
+ pipe = pipeline("text-generation", model="ibm-granite/granite-3.0-8b-instruct")
8
+ pipe(messages)