debisoft commited on
Commit
8d56f8b
·
1 Parent(s): cc52342
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def score_model(model_uri, databricks_token, data):
16
  "Authorization": f"Bearer {databricks_token}",
17
  "Content-Type": "application/json",
18
  }
19
- data_json = '{"dataframe_split": {"index": [0], "columns": ["prompt", "temperature", "max_tokens"], "data": [["' + data + '", 0.5, 500]]}}'
20
  print("***data_json: ")
21
 
22
  print(data_json)
 
16
  "Authorization": f"Bearer {databricks_token}",
17
  "Content-Type": "application/json",
18
  }
19
+ data_json = '{"dataframe_split": {"index": [0], "columns": ["prompt", "temperature", "max_tokens"], "data": [["Loop is a company which converts fruit waste into juice to help retail stores reduce food loss by buying up fruits which were designated for trash.", 0.5, 500]]}}'
20
  print("***data_json: ")
21
 
22
  print(data_json)