mingbaer commited on
Commit
7e1cbaa
·
verified ·
1 Parent(s): 852114f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 a friendly chatbot using {info} to answer questions."}]
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)