Compare commits

..

1 Commits

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

View File

@ -1,4 +1,3 @@
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
@ -27,9 +26,9 @@ async def execute_task(args):
print(f"Error-corrected sequence: {prediction}") print(f"Error-corrected sequence: {prediction}")
def main() -> None: async def main() -> None:
args = parse_arguments() args = parse_arguments()
run(execute_task(args)) await execute_task(args)
if __name__ == "__main__": if __name__ == "__main__":