kyleebrooks commited on
Commit
2e58384
β€’
1 Parent(s): 8b43e1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -130,7 +130,7 @@ def generate_response(prompt):
130
  #response = chat_engine.chat_repl(messages)
131
  string_message=str(messages)
132
  #response = query_engine.query(string_message)
133
- response = chat_engine.chat(prompt, chat_history=custom_chat_history)
134
  string_response=str(response)
135
  custom_chat_history.append("Human: "+prompt+"Assistant: "+string_response)
136
  #Optional[List[ChatMessage]] = None) β†’ Union[Response, StreamingResponse]
@@ -142,7 +142,7 @@ def generate_response(prompt):
142
  print("below is history")
143
  print(chat_history)
144
  print("below is type")
145
- print(type(chat_history))
146
  type(chat_history)
147
  return response.response
148
 
 
130
  #response = chat_engine.chat_repl(messages)
131
  string_message=str(messages)
132
  #response = query_engine.query(string_message)
133
+ response = chat_engine.chat(prompt, chat_history)
134
  string_response=str(response)
135
  custom_chat_history.append("Human: "+prompt+"Assistant: "+string_response)
136
  #Optional[List[ChatMessage]] = None) β†’ Union[Response, StreamingResponse]
 
142
  print("below is history")
143
  print(chat_history)
144
  print("below is type")
145
+ print(type(custom_chat_history))
146
  type(chat_history)
147
  return response.response
148