Matthew Danish
commited on
Commit
•
f3b8f30
1
Parent(s):
2472160
fix stupid typo
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def main(form):
|
|
74 |
result['spatial_params']=spatparams
|
75 |
result['distortion_params']=distparams
|
76 |
result['points_params']=ptsparams
|
77 |
-
if 'detections' in form and isinstance(
|
78 |
result['detections']=json.loads(form['detections'])
|
79 |
else:
|
80 |
result['detections']=[]
|
|
|
74 |
result['spatial_params']=spatparams
|
75 |
result['distortion_params']=distparams
|
76 |
result['points_params']=ptsparams
|
77 |
+
if 'detections' in form and isinstance(form['detections'], str):
|
78 |
result['detections']=json.loads(form['detections'])
|
79 |
else:
|
80 |
result['detections']=[]
|