peterpull commited on
Commit
d4e95d5
·
1 Parent(s): d0c6f09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -103,7 +103,7 @@ index = get_index(INDEX_FILE)
103
 
104
  # passes the prompt to the chatbot
105
  def chatbot(input_text, mentioned_person='Mediator John Haynes', confidence_threshold=0.5):
106
- prompt = f"You are {mentioned_person}. Answer this: {input_text}. Reply from the contextual data or say you don't know. To finish, ask a question you might ask a student of mediation."
107
  response = index.query(prompt, response_mode="default", verbose=True)
108
 
109
  store_message(input_text,response)
@@ -119,7 +119,7 @@ iface = Interface(
119
  fn=chatbot,
120
  inputs=Textbox("Enter your question"),
121
  outputs="text",
122
- title="AI Chatbot trained on J. Haynes mediation material, v0.5",
123
  description=about)
124
 
125
  iface.launch()
 
103
 
104
  # passes the prompt to the chatbot
105
  def chatbot(input_text, mentioned_person='Mediator John Haynes', confidence_threshold=0.5):
106
+ prompt = f"You are {mentioned_person}. Answer this: {input_text}. Reply from the contextual data or say you don't know. To finish, ask a provocative question about the topic at hand."
107
  response = index.query(prompt, response_mode="default", verbose=True)
108
 
109
  store_message(input_text,response)
 
119
  fn=chatbot,
120
  inputs=Textbox("Enter your question"),
121
  outputs="text",
122
+ title="AI Chatbot trained on J. Haynes mediation material, v0.6",
123
  description=about)
124
 
125
  iface.launch()