Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 468 Bytes
import argparse
import json
from prediction.task import Task
if __name__ == '__main__':
# Define and parse the arguments
parser = argparse.ArgumentParser()
parser.add_argument('--action', type=str, required=True)
parser.add_argument('--config', type=str, required=True)
arguments = parser.parse_args()
# Read the configuration file and run a task
with open(arguments.config) as file:
Task().run(arguments.action, json.load(file))
You can’t perform that action at this time.