Update app.py
Browse files
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
|