srinivas-mushroom commited on
Commit
bc6527c
1 Parent(s): 84a890c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def chatbot(text):
16
 
17
  def gradio_interface(prompt, history=[]):
18
  output = chatbot(prompt)
19
- history.append((prompt,output))
20
  return history, history
21
 
22
  gr.Interface(fn = gradio_interface,
 
16
 
17
  def gradio_interface(prompt, history=[]):
18
  output = chatbot(prompt)
19
+ history.append((prompt,output)).reverse()
20
  return history, history
21
 
22
  gr.Interface(fn = gradio_interface,