We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c08a78b commit 3c63af5Copy full SHA for 3c63af5
openlayer/models.py
@@ -1,3 +1,4 @@
1
+import ast
2
import logging
3
import os
4
import shutil
@@ -359,4 +360,9 @@ def run(self, input_data: pd.DataFrame) -> pd.DataFrame:
359
360
# Read the output data from the csv file
361
output_data = pd.read_csv(f"{temp_dir}/output_data.csv")
362
363
+ # Make the items list of floats (and not strings)
364
+ output_data["predictions"] = output_data["predictions"].apply(
365
+ ast.literal_eval
366
+ )
367
+
368
return output_data
0 commit comments