Omnibus commited on
Commit
8557582
·
1 Parent(s): 74b2d9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -274,9 +274,11 @@ with gr.Blocks() as app:
274
  print (f'response :: {response}')
275
  #[demoDictionary[dict_key] for dict_key in demoDictionary]
276
  #for ip,dictValue in enumerate(response):
277
- for ip in response['chain']:
 
 
278
  try:
279
- out.append(response['chain'][ip]['message'])
280
  except Exception:
281
  pass
282
  #out.append(response[ip]["message"] for ip in response)
 
274
  print (f'response :: {response}')
275
  #[demoDictionary[dict_key] for dict_key in demoDictionary]
276
  #for ip,dictValue in enumerate(response):
277
+ for i,ip in enumerate(response['chain']):
278
+ print (f'i === {i}')
279
+ print (f'ip === {ip}')
280
  try:
281
+ out.append(response['chain'][i]['message'])
282
  except Exception:
283
  pass
284
  #out.append(response[ip]["message"] for ip in response)