Update app.py (#1)
Browse files- Update app.py (4ad79395fd32f0865ffecdb70fba365f3dce0c51)
Co-authored-by: Louise Pollock <louisepxllock@users.noreply.huggingface.co>
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from huggingface_hub import InferenceClient
|
|
| 5 |
client = InferenceClient("microsoft/phi-4")
|
| 6 |
|
| 7 |
def respond(message, history):
|
| 8 |
-
messages = [{"role": "system", "content": "you are a
|
| 9 |
|
| 10 |
if history:
|
| 11 |
messages.extend(history)
|
|
@@ -25,3 +25,4 @@ chatbot = gr.ChatInterface(respond, type = "messages", title = "Friendly chatbot
|
|
| 25 |
chatbot.launch()
|
| 26 |
|
| 27 |
|
|
|
|
|
|
| 5 |
client = InferenceClient("microsoft/phi-4")
|
| 6 |
|
| 7 |
def respond(message, history):
|
| 8 |
+
messages = [{"role": "system", "content": "you are a sassy chatbot"}]
|
| 9 |
|
| 10 |
if history:
|
| 11 |
messages.extend(history)
|
|
|
|
| 25 |
chatbot.launch()
|
| 26 |
|
| 27 |
|
| 28 |
+
|