Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -268,22 +268,24 @@ with gr.Blocks() as app:
|
|
268 |
|
269 |
def display_messages(im):
|
270 |
out = []
|
271 |
-
i=1
|
272 |
address,key=crypt.address(im)
|
273 |
response, message_out = get_my_chain_send(address)
|
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 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
|
|
|
|
|
|
|
|
285 |
|
286 |
-
i+=1
|
287 |
return (address,message_out,response,out)
|
288 |
|
289 |
def test_fn(im):
|
|
|
268 |
|
269 |
def display_messages(im):
|
270 |
out = []
|
|
|
271 |
address,key=crypt.address(im)
|
272 |
response, message_out = get_my_chain_send(address)
|
273 |
print (f'response :: {response}')
|
274 |
#[demoDictionary[dict_key] for dict_key in demoDictionary]
|
275 |
#for ip,dictValue in enumerate(response):
|
276 |
for i,ip in enumerate(response['chain']):
|
277 |
+
#print (f'i === {i}')
|
278 |
+
#print (f'ip === {ip}')
|
279 |
+
if i == 0:
|
280 |
+
pass
|
281 |
+
else:
|
282 |
+
try:
|
283 |
+
out.append("#########################")
|
284 |
+
out.append(response['chain'][i]['message'])
|
285 |
+
except Exception:
|
286 |
+
pass
|
287 |
+
#out.append(response[ip]["message"] for ip in response)
|
288 |
|
|
|
289 |
return (address,message_out,response,out)
|
290 |
|
291 |
def test_fn(im):
|