saffr0n commited on
Commit
574638c
·
verified ·
1 Parent(s): 9b3ec07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -54,7 +54,7 @@ def generate(
54
  conversation = []
55
  if not system_prompt:
56
  system_prompt = SYSTEM_PROMPT
57
- conversation.append({"role": "system", "content": system_prompt})
58
  for user, assistant in chat_history:
59
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
60
  conversation.append({"role": "user", "content": message})
@@ -88,7 +88,6 @@ def generate(
88
 
89
  chat_interface = gr.ChatInterface(
90
  fn=generate,
91
- chatbot=chatbot,
92
  fill_height=True,
93
  additional_inputs=[
94
  gr.Textbox(label="System prompt", lines=6),
 
54
  conversation = []
55
  if not system_prompt:
56
  system_prompt = SYSTEM_PROMPT
57
+ conversation.append({"role": "system", "content": system_prompt})
58
  for user, assistant in chat_history:
59
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
60
  conversation.append({"role": "user", "content": message})
 
88
 
89
  chat_interface = gr.ChatInterface(
90
  fn=generate,
 
91
  fill_height=True,
92
  additional_inputs=[
93
  gr.Textbox(label="System prompt", lines=6),