Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ client = InferenceClient("microsoft/phi-4")
|
|
| 55 |
def respond(message, history):
|
| 56 |
|
| 57 |
info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 58 |
-
messages = [{"role": "system", "content": f"You are
|
| 59 |
|
| 60 |
if history:
|
| 61 |
messages.extend(history)
|
|
@@ -72,4 +72,4 @@ def respond(message, history):
|
|
| 72 |
|
| 73 |
chatbot = gr.ChatInterface(respond, type="messages")
|
| 74 |
|
| 75 |
-
chatbot.launch(debug=True)
|
|
|
|
| 55 |
def respond(message, history):
|
| 56 |
|
| 57 |
info = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 58 |
+
messages = [{"role": "system", "content": f"You are an angry teacher chatbot using {info} to answer questions but always responding by complaining about your students."}]
|
| 59 |
|
| 60 |
if history:
|
| 61 |
messages.extend(history)
|
|
|
|
| 72 |
|
| 73 |
chatbot = gr.ChatInterface(respond, type="messages")
|
| 74 |
|
| 75 |
+
chatbot.launch(debug=True, share=True)
|