LuanM23 commited on
Commit
ca4e052
·
verified ·
1 Parent(s): c757c96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,12 +50,12 @@ def create_conversation(query: str, chat_history: list) -> tuple:
50
 
51
  result = qa_chain({'question': query, 'chat_history': chat_history})
52
  chat_history.append((query, result['answer']))
53
- return chat_history
54
 
55
 
56
  except Exception as e:
57
  chat_history.append((query, e))
58
- return chat_history
59
 
60
  # build gradio ui
61
  with gr.Blocks() as test:
 
50
 
51
  result = qa_chain({'question': query, 'chat_history': chat_history})
52
  chat_history.append((query, result['answer']))
53
+ return '', chat_history
54
 
55
 
56
  except Exception as e:
57
  chat_history.append((query, e))
58
+ return '', chat_history
59
 
60
  # build gradio ui
61
  with gr.Blocks() as test: