Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,8 @@ 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,6 +22,6 @@ def respond(message, history):
|
|
| 21 |
|
| 22 |
print("Hello world")
|
| 23 |
|
| 24 |
-
chatbot = gr.ChatInterface(respond, type="messages", title="
|
| 25 |
chatbot.launch()
|
| 26 |
|
|
|
|
| 5 |
client = InferenceClient("microsoft/phi-4")
|
| 6 |
|
| 7 |
def respond(message, history):
|
| 8 |
+
messages = [{"role": "system", "content": "You are a helpful tutor assisting in GCSE AQA Biology. You should assist the user in learning the concept they want to learn within gcse biology. Include constantly asking questions, providing information and consolidating knowledge.
|
| 9 |
+
."}]
|
| 10 |
|
| 11 |
if history:
|
| 12 |
messages.extend(history)
|
|
|
|
| 22 |
|
| 23 |
print("Hello world")
|
| 24 |
|
| 25 |
+
chatbot = gr.ChatInterface(respond, type="messages", title="ACE it!")
|
| 26 |
chatbot.launch()
|
| 27 |
|