nastasiasnk commited on
Commit
097b913
1 Parent(s): 9f0b57a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,9 +11,9 @@ def test(input_json):
11
  inputs = json.loads(input_json)
12
  except json.JSONDecodeError:
13
  inputs = json.loads(input_json.replace("'", '"'))
14
- print("Parsed input keys:", inputs.keys())
15
 
16
- print("Parsed input values:", inputs.values())
17
  #sum_list = sum(float(item) for item in inputs["a_list"])
18
  #multiplication = [-float((inputs["alpha"])) * float(item) for item in inputs["a_list"]]
19
  #new_df = pd.DataFrame(index=inputs["dataframe"].index, columns=inputs["dataframe"].columns)
@@ -23,7 +23,7 @@ def test(input_json):
23
 
24
  # Prepare the output
25
  output = {
26
- "test result": inputs.values()
27
  }
28
 
29
  return json.dumps(output)
 
11
  inputs = json.loads(input_json)
12
  except json.JSONDecodeError:
13
  inputs = json.loads(input_json.replace("'", '"'))
14
+ #print("Parsed input keys:", inputs.keys())
15
 
16
+ #print("Parsed input values:", inputs.values())
17
  #sum_list = sum(float(item) for item in inputs["a_list"])
18
  #multiplication = [-float((inputs["alpha"])) * float(item) for item in inputs["a_list"]]
19
  #new_df = pd.DataFrame(index=inputs["dataframe"].index, columns=inputs["dataframe"].columns)
 
23
 
24
  # Prepare the output
25
  output = {
26
+ "test result": input_json
27
  }
28
 
29
  return json.dumps(output)