serJD commited on
Commit
e46c84a
·
verified ·
1 Parent(s): ed97acb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -69,7 +69,9 @@ def app_function(input_json):
69
  inputs = json.loads(input_json.replace("'", '"'))
70
  print(inputs.keys())
71
  # navigate to payload
72
- inputs = inputs["data"][0]["input"]
 
 
73
  # Convert 'df_distances' from a list of lists into a DataFrame directly
74
  df_distances = pd.DataFrame(inputs["df_distances"])
75
 
 
69
  inputs = json.loads(input_json.replace("'", '"'))
70
  print(inputs.keys())
71
  # navigate to payload
72
+ inputs = inputs["input"]
73
+
74
+ print(inputs.keys())
75
  # Convert 'df_distances' from a list of lists into a DataFrame directly
76
  df_distances = pd.DataFrame(inputs["df_distances"])
77