Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,9 +7,6 @@ chatbot = pipeline("text-generation", model="HuggingFaceH4/zephyr-7b-beta")
|
|
| 7 |
def chat_with_ai(message, history=[]):
|
| 8 |
messages = [
|
| 9 |
{
|
| 10 |
-
"role": "system",
|
| 11 |
-
"content": "You are a friendly chatbot who always responds in the style of a pirate",
|
| 12 |
-
},
|
| 13 |
{"role": "user", "content": message},
|
| 14 |
]
|
| 15 |
|
|
|
|
| 7 |
def chat_with_ai(message, history=[]):
|
| 8 |
messages = [
|
| 9 |
{
|
|
|
|
|
|
|
|
|
|
| 10 |
{"role": "user", "content": message},
|
| 11 |
]
|
| 12 |
|