Reyad-Ahmmed commited on
Commit
5052ec3
·
verified ·
1 Parent(s): 982ebc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,14 +23,14 @@ import json
23
  with open('config.json', 'r') as config_file:
24
  config = json.load(config_file)
25
 
26
- num_args = len("argument length", config)
27
 
28
  arg1 = config.get('arg1', 'default_value1')
29
  arg2 = config.get('arg2', 'default_value2')
30
 
31
  print(f"Argument 1: {arg1}")
32
  print(f"Argument 2: {arg2}")
33
-
34
 
35
  if len(num_args) > 1:
36
  # sys.argv[0] is the script name, sys.argv[1] is the first argument, etc.
 
23
  with open('config.json', 'r') as config_file:
24
  config = json.load(config_file)
25
 
26
+ num_args = len(config)
27
 
28
  arg1 = config.get('arg1', 'default_value1')
29
  arg2 = config.get('arg2', 'default_value2')
30
 
31
  print(f"Argument 1: {arg1}")
32
  print(f"Argument 2: {arg2}")
33
+ print(f"Total argument size: {num_args}")
34
 
35
  if len(num_args) > 1:
36
  # sys.argv[0] is the script name, sys.argv[1] is the first argument, etc.