sonald commited on
Commit
731907d
1 Parent(s): fe0c25c
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -75,7 +75,9 @@ def demo8():
75
  history.append(question)
76
  resp = conversation_agent(question)
77
  print(f"resp: {resp}")
78
- history.append(resp)
 
 
79
 
80
 
81
  with gr.Blocks() as demo:
 
75
  history.append(question)
76
  resp = conversation_agent(question)
77
  print(f"resp: {resp}")
78
+ history.append(resp['output'])
79
+ dial = [(u, v) for u, v in zip(history[::2], history[1::2])]
80
+ return dial, history
81
 
82
 
83
  with gr.Blocks() as demo: