Store args passed from commandline at app start in global app state

This commit is contained in:
Debanjum Singh Solanky
2022-08-11 00:10:21 +03:00
parent cc6ef0f450
commit 34018c7d4b
2 changed files with 5 additions and 3 deletions

View File

@@ -12,4 +12,5 @@ model = SearchModels()
processor_config = ProcessorConfigModel()
config_file: Path = ""
verbose: int = 0
device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu") # Set device to GPU if available
device = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu") # Set device to GPU if available
cli_args = None