idolezal commited on
Commit
2a4d35b
β€’
1 Parent(s): 6268f11
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def validate_submission_inputs(**inputs):
44
  raise ValueError('Link does not starts with "http://" or "https://"')
45
  if not inputs["parameters"] > 0:
46
  raise ValueError('Attribute `Parameters (B)` should be greater than zero')
47
- if not inputs["input_length"] > 0 and inputs["input_length"] != int(inputs["input_length"]):
48
  raise ValueError('Attribute `Input length (# tokens)` should be greater than zero and integer type')
49
 
50
  def process_submission(*inputs):
 
44
  raise ValueError('Link does not starts with "http://" or "https://"')
45
  if not inputs["parameters"] > 0:
46
  raise ValueError('Attribute `Parameters (B)` should be greater than zero')
47
+ if not (inputs["input_length"] > 0 and inputs["input_length"] == int(inputs["input_length"])):
48
  raise ValueError('Attribute `Input length (# tokens)` should be greater than zero and integer type')
49
 
50
  def process_submission(*inputs):