Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from huggingface_hub import InfrenceClient
|
|
| 5 |
Client = InfrenceClient("microsoft/phi-4")
|
| 6 |
|
| 7 |
def respond(message, history):
|
| 8 |
-
messages = [{"role:
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
messages.append({"role": "user", "context":messages})
|
|
|
|
| 5 |
Client = InfrenceClient("microsoft/phi-4")
|
| 6 |
|
| 7 |
def respond(message, history):
|
| 8 |
+
messages = [{"role": "system", "content": "you are a friendly chatbox."}]
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
messages.append({"role": "user", "context":messages})
|