Spaces:
Sleeping
Sleeping
rename to university chatbot
#3
by
louisepxllock
- opened
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)
|
|
@@ -21,7 +21,7 @@ def respond(message, history):
|
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
-
chatbot = gr.ChatInterface(respond, type = "messages", title = "
|
| 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 friendly chatbot, helping highschool students make decisions about universities"}]
|
| 9 |
|
| 10 |
if history:
|
| 11 |
messages.extend(history)
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
+
chatbot = gr.ChatInterface(respond, type = "messages", title = "University chatbot") #chatbot ui - conversation history and user input
|
| 25 |
chatbot.launch()
|
| 26 |
|
| 27 |
|