Kathirsci commited on
Commit
a446846
·
verified ·
1 Parent(s): d1e6bff

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ messages = [
4
+ {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
5
+ {"role": "user", "content": "Who are you?"},
6
+ ]
7
+ chatbot = pipeline("text-generation", model="mistralai/Mistral-7B-Instruct-v0.3")
8
+ chatbot(messages)