srinivas-mushroom commited on
Commit
c076f0c
1 Parent(s): 003fa24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,7 +17,8 @@ def chatbot(text):
17
  def gradio_interface(prompt, history=[]):
18
  output = chatbot(prompt)
19
  if history != []:
20
- history.append((prompt,output)).reverse()
 
21
  else:
22
  history.append((prompt, output))
23
  return history, history
 
17
  def gradio_interface(prompt, history=[]):
18
  output = chatbot(prompt)
19
  if history != []:
20
+ history.append((prompt,output))
21
+ history.reverse()
22
  else:
23
  history.append((prompt, output))
24
  return history, history