Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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'][
|
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)
|