Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -270,7 +270,7 @@ with gr.Blocks() as app:
|
|
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']):
|
@@ -281,13 +281,13 @@ with gr.Blocks() as app:
|
|
281 |
else:
|
282 |
try:
|
283 |
ea = response['chain'][i]['message']
|
284 |
-
print (ea)
|
285 |
ea = ea[0]
|
286 |
-
print (ea)
|
287 |
|
288 |
dec = crypt.decrypt_trans(ea,im)
|
289 |
-
print(f'dec === {dec}')
|
290 |
-
out.append(dec)
|
291 |
#out.append("#########################")
|
292 |
#out.append(response['chain'][i]['message'])
|
293 |
except Exception as e:
|
|
|
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']):
|
|
|
281 |
else:
|
282 |
try:
|
283 |
ea = response['chain'][i]['message']
|
284 |
+
#print (ea)
|
285 |
ea = ea[0]
|
286 |
+
#print (ea)
|
287 |
|
288 |
dec = crypt.decrypt_trans(ea,im)
|
289 |
+
#print(f'dec === {dec}')
|
290 |
+
out.append(dec.strip('"'))
|
291 |
#out.append("#########################")
|
292 |
#out.append(response['chain'][i]['message'])
|
293 |
except Exception as e:
|