Yahudaxd commited on
Commit
9619132
·
verified ·
1 Parent(s): 8f02ebf

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Use a pipeline as a high-level helper
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("text-generation", model="XiaomiMiMo/MiMo-7B-Base", trust_remote_code=True)
5
+ messages = [
6
+ {"role": "user", "content": "Who are you?"},
7
+ ]
8
+ pipe(messages)