Compare commits

..

1 Commits

Author SHA1 Message Date
coolneng 5c9e2f4712
Add the async CLI execution of the inference 2021-07-06 19:01:50 +02:00
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
from asyncio import run
from argparse import ArgumentParser, Namespace from argparse import ArgumentParser, Namespace
from model import infer_sequence, train_model from model import infer_sequence, train_model
@ -26,9 +27,9 @@ async def execute_task(args):
print(f"Error-corrected sequence: {prediction}") print(f"Error-corrected sequence: {prediction}")
async def main() -> None: def main() -> None:
args = parse_arguments() args = parse_arguments()
await execute_task(args) run(execute_task(args))
if __name__ == "__main__": if __name__ == "__main__":