Spaces:
Build error
Build error
File size: 368 Bytes
b61548a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import json
def load_config():
with open("config.json", "r") as f:
return json.load(f)
def load_data(data_path):
with open(data_path, "r") as f:
return [line.strip() for line in f.readlines()]
def save_results(results, output_path):
with open(output_path, "w") as f:
for result in results:
f.write(str(result) + "\n") |