Omnibus commited on
Commit
32e541c
·
1 Parent(s): 03cd328

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -296,9 +296,9 @@ with gr.Blocks() as app:
296
  # split the string into key-value pairs
297
  pairs = string.split(', ')
298
  print(f'PAIRS ::: {pairs}')
299
- json_dec = {key[1:-2]: str(value) for key, value in (pair.split(': ') for pair in pairs)}
300
- print(f'KEY ::: {key}')
301
- print(f'VALUE ::: {value}')
302
 
303
 
304
  #json_dec=json.loads(f"{dec}")
 
296
  # split the string into key-value pairs
297
  pairs = string.split(', ')
298
  print(f'PAIRS ::: {pairs}')
299
+ json_dec = {key1[1:-2]: str(value) for key1, value in (pair.split(': ') for pair in pairs)}
300
+ #print(f'KEY ::: {key}')
301
+ #print(f'VALUE ::: {value}')
302
 
303
 
304
  #json_dec=json.loads(f"{dec}")