Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -289,12 +289,13 @@ with gr.Blocks() as app:
|
|
289 |
|
290 |
dec = crypt.decrypt_trans(ea,im)
|
291 |
print(f'dec === {dec}')
|
|
|
292 |
dec = dec.strip('"')
|
293 |
out1 = {
|
294 |
'timestamp':ts,
|
295 |
-
'sender':
|
296 |
-
'recipient':
|
297 |
-
'message':
|
298 |
|
299 |
}
|
300 |
out.append(out1)
|
|
|
289 |
|
290 |
dec = crypt.decrypt_trans(ea,im)
|
291 |
print(f'dec === {dec}')
|
292 |
+
json_dec=json.dumps(dec, indent=4)
|
293 |
dec = dec.strip('"')
|
294 |
out1 = {
|
295 |
'timestamp':ts,
|
296 |
+
'sender': json_dec['sender'],
|
297 |
+
'recipient': json_dec['recipient'],
|
298 |
+
'message': json_dec['message']
|
299 |
|
300 |
}
|
301 |
out.append(out1)
|