From bb8a36a612c5764618d1569690a016fdbd76314d Mon Sep 17 00:00:00 2001 From: Daoud Clarke Date: Tue, 27 Dec 2022 10:40:53 +0000 Subject: [PATCH] Number of pages is an int --- mwmbl/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwmbl/main.py b/mwmbl/main.py index d5b450f..4bc82fa 100644 --- a/mwmbl/main.py +++ b/mwmbl/main.py @@ -25,7 +25,7 @@ MODEL_PATH = Path(__file__).parent / 'resources' / 'model.pickle' def setup_args(): parser = argparse.ArgumentParser(description="Mwmbl API server and background task processor") - parser.add_argument("--num-pages", help="Number of pages of memory (4096 bytes) to use for the index", default=2560) + parser.add_argument("--num-pages", type=int, help="Number of pages of memory (4096 bytes) to use for the index", default=2560) parser.add_argument("--data", help="Path to the data folder for storing index and cached batches", default="./devdata") parser.add_argument("--background", help="Enable running the background tasks to process batches", action='store_true')