Tigran Tokmajyan commited on
Commit
afb71f7
·
1 Parent(s): 1c2f184

Pprint data

Browse files
Files changed (1) hide show
  1. handler.py +5 -1
handler.py CHANGED
@@ -49,8 +49,12 @@ class EndpointHandler:
49
  logger.debug("Full object: %s", json.dumps(data, indent=2))
50
 
51
  # Extract inputs from data
52
- html = data.get("html", "")
 
 
 
53
  question = data.get("question", "")
 
54
 
55
  # Parse HTML to get nodes and xpaths
56
  nodes, xpaths = self._parse_html(html)
 
49
  logger.debug("Full object: %s", json.dumps(data, indent=2))
50
 
51
  # Extract inputs from data
52
+ httpInputs = data.get("inputs", "")
53
+ logger.debug("Full object: %s", json.dumps(httpInputs, indent=2))
54
+ html = data.get("context", "")
55
+ logger.debug("Full object: %s", json.dumps(html, indent=2))
56
  question = data.get("question", "")
57
+ logger.debug("Full object: %s", json.dumps(question, indent=2))
58
 
59
  # Parse HTML to get nodes and xpaths
60
  nodes, xpaths = self._parse_html(html)