Skip to content

Commit

Permalink
Fix output serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
DhanshreeA authored May 19, 2024
1 parent 1146c3a commit 28ecfff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def run(self, smiles_list): # <-- EDIT: rename if model does not do predictions
h = next(reader)
R = []
for r in reader:
R += [{"outcome": [Float(x) for x in r]}] # <-- EDIT: Modify according to type of output (Float, String...)
R += [{"sa_score": Float(x) for x in r}]
meta = {
"outcome": h
}
Expand Down

0 comments on commit 28ecfff

Please sign in to comment.