bmconrad commited on
Commit
6d29645
·
1 Parent(s): d5fba32

added greeting

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -88,7 +88,6 @@ def respond(
88
  top_p,
89
  ):
90
  messages = [{"role": "system", "content": system_message}]
91
-
92
  for val in history:
93
  if val[0]:
94
  messages.append({"role": "user", "content": val[0]})
@@ -116,7 +115,8 @@ def respond(
116
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
117
  """
118
  demo = gr.ChatInterface(
119
- respond,
 
120
  additional_inputs=[
121
  gr.Textbox(value="You are a Christian Pastor. Provide spiritual wisdom, based on biblical truth found in the context. Quote from the context when appropriate.", label="System message"),
122
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
88
  top_p,
89
  ):
90
  messages = [{"role": "system", "content": system_message}]
 
91
  for val in history:
92
  if val[0]:
93
  messages.append({"role": "user", "content": val[0]})
 
115
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
116
  """
117
  demo = gr.ChatInterface(
118
+ fn=respond,
119
+ chatbot = gr.Chatbot(value = [[None, "How can I help you with today, beloved?"]]),
120
  additional_inputs=[
121
  gr.Textbox(value="You are a Christian Pastor. Provide spiritual wisdom, based on biblical truth found in the context. Quote from the context when appropriate.", label="System message"),
122
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),