chriscelaya commited on
Commit
9062838
1 Parent(s): 2942683

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ def chat(
42
  history_messages = state
43
  if history_messages == None:
44
  history_messages = []
45
- history_messages.append({"role": "system", "content": "A helpful assistant."})
46
 
47
  history_messages.append({"role": "user", "content": message})
48
  # We have no content for the assistant's response yet but we will update this:
@@ -73,7 +73,7 @@ chatbot = gr.Chatbot(label="Chat").style(color_map=("yellow", "purple"))
73
  iface = gr.Interface(
74
  fn=chat,
75
  inputs=[
76
- gr.Textbox(placeholder="Hello! How are you? etc.", label="Message"),
77
  "state",
78
  ],
79
  outputs=[chatbot, "state"],
 
42
  history_messages = state
43
  if history_messages == None:
44
  history_messages = []
45
+ history_messages.append({"role": "system", "content": "ChatDefense is available to assist you with your legal questions."})
46
 
47
  history_messages.append({"role": "user", "content": message})
48
  # We have no content for the assistant's response yet but we will update this:
 
73
  iface = gr.Interface(
74
  fn=chat,
75
  inputs=[
76
+ gr.Textbox(placeholder="Hello there 👋🏼 ", label="Message"),
77
  "state",
78
  ],
79
  outputs=[chatbot, "state"],