Omnibus commited on
Commit
037ed9e
1 Parent(s): 23dbed5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -160,7 +160,7 @@ def comment_generate(prompt, history,post_check,full_conv, agent_name=agents[0],
160
  if r.status_code==200:
161
  try:
162
  lod = json.loads(r.text)
163
- lod = lod['comment_list'].append({'user':list_of_users[1],'datetime':'','comment':output})
164
  #hist_out.append(out_json)
165
  #try:
166
  # for ea in
 
160
  if r.status_code==200:
161
  try:
162
  lod = json.loads(r.text)
163
+ lod = lod[0]['comment_list'].append({'user':list_of_users[1],'datetime':'','comment':output})
164
  #hist_out.append(out_json)
165
  #try:
166
  # for ea in