broadfield-dev commited on
Commit
0a0974f
·
verified ·
1 Parent(s): 06bdda5

Update gradio_keylock/component.py

Browse files
Files changed (1) hide show
  1. gradio_keylock/component.py +3 -1
gradio_keylock/component.py CHANGED
@@ -51,7 +51,9 @@ class AppServerLogic:
51
  key = key.strip()
52
  value = value.strip()
53
 
54
- # Handle quoted values
 
 
55
  if (value.startswith('"') and value.endswith('"')) or \
56
  (value.startswith("'") and value.endswith("'")):
57
  value = value[1:-1]
 
51
  key = key.strip()
52
  value = value.strip()
53
 
54
+ if (key.startswith('"') and key.endswith('"')) or \
55
+ (key.startswith("'") and key.endswith("'")):
56
+ key = key[1:-1]
57
  if (value.startswith('"') and value.endswith('"')) or \
58
  (value.startswith("'") and value.endswith("'")):
59
  value = value[1:-1]