anasmkh commited on
Commit
1ec3f62
·
verified ·
1 Parent(s): e6837d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -66,7 +66,7 @@ import gradio as gr
66
  def chat_with_ai(user_input, chat_history):
67
  if is_greeting(user_input):
68
  response = chat_engine.chat(user_input)
69
- chat_history.append((user_input, greeting_response))
70
  return chat_history, ""
71
  response = chat_engine.chat(user_input)
72
  references = response.source_nodes
 
66
  def chat_with_ai(user_input, chat_history):
67
  if is_greeting(user_input):
68
  response = chat_engine.chat(user_input)
69
+ chat_history.append((user_input, response))
70
  return chat_history, ""
71
  response = chat_engine.chat(user_input)
72
  references = response.source_nodes