Spaces:
Sleeping
Sleeping
Bug fixes
Browse files
app.py
CHANGED
|
@@ -7,11 +7,10 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
| 7 |
def respond(message, history):
|
| 8 |
|
| 9 |
system_message = "You are a poet chatbot. You always respond with a rhyme!"
|
| 10 |
-
|
| 11 |
|
| 12 |
# initialize a list of dictionaries to store the messages
|
| 13 |
messages = [{"role": "system",
|
| 14 |
-
"content":
|
| 15 |
|
| 16 |
# add all previous messages to the messages list
|
| 17 |
if history:
|
|
|
|
| 7 |
def respond(message, history):
|
| 8 |
|
| 9 |
system_message = "You are a poet chatbot. You always respond with a rhyme!"
|
|
|
|
| 10 |
|
| 11 |
# initialize a list of dictionaries to store the messages
|
| 12 |
messages = [{"role": "system",
|
| 13 |
+
"content": system_message}]
|
| 14 |
|
| 15 |
# add all previous messages to the messages list
|
| 16 |
if history:
|