lalalic commited on
Commit
c8b3974
1 Parent(s): 1553b91

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -12,11 +12,11 @@ def parse_params():
12
  input=request.args.get('input')
13
  kargs=request.args.get('kargs')
14
  try:
15
- input = json.load(input) if input and len(input)>0
16
  except:
17
  pass
18
  try:
19
- kargs = json.load(kargs) if kargs and len(kargs)>0
20
  except:
21
  kargs={}
22
  return input, kargs
 
12
  input=request.args.get('input')
13
  kargs=request.args.get('kargs')
14
  try:
15
+ input = json.load(input)
16
  except:
17
  pass
18
  try:
19
+ kargs = json.load(kargs)
20
  except:
21
  kargs={}
22
  return input, kargs