Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = {
|
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}")
|