jree423 commited on
Commit
9391275
·
verified ·
1 Parent(s): e124116

Fix: Remove local json import that was causing variable scope issues

Browse files
Files changed (1) hide show
  1. handler.py +0 -1
handler.py CHANGED
@@ -52,7 +52,6 @@ class EndpointHandler:
52
  if isinstance(inputs, str):
53
  # Check if it's a JSON string
54
  try:
55
- import json
56
  parsed_inputs = json.loads(inputs)
57
  if isinstance(parsed_inputs, dict):
58
  inputs = parsed_inputs
 
52
  if isinstance(inputs, str):
53
  # Check if it's a JSON string
54
  try:
 
55
  parsed_inputs = json.loads(inputs)
56
  if isinstance(parsed_inputs, dict):
57
  inputs = parsed_inputs