Corran commited on
Commit
03fa64f
·
verified ·
1 Parent(s): fd25f55

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -9,7 +9,7 @@ def run_notebook(fruits: str):
9
 
10
  fruit_list = fruits.split(",")
11
 
12
- with open("fruits.txt", "w") as f:
13
  f.write("\n".join(fruit_list))
14
 
15
  # Execute the notebook with Papermill
@@ -18,7 +18,7 @@ def run_notebook(fruits: str):
18
  parameters={"fruits": fruit_list}
19
  )
20
 
21
- output_path = "output.csv"
22
 
23
  # Extract the CSV result
24
  with open(output_path, "r") as f:
 
9
 
10
  fruit_list = fruits.split(",")
11
 
12
+ with open("/tmp/fruits.txt", "w") as f:
13
  f.write("\n".join(fruit_list))
14
 
15
  # Execute the notebook with Papermill
 
18
  parameters={"fruits": fruit_list}
19
  )
20
 
21
+ output_path = "/tmp/output.csv"
22
 
23
  # Extract the CSV result
24
  with open(output_path, "r") as f: