explorewithai
commited on
Commit
•
f4224c3
1
Parent(s):
6d7bdd4
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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="explorewithai/ChatFrame-Uncensored-Instruct-Small")
|
8 |
+
pipe(messages)
|
9 |
+
print(pipe(messages))
|