valentynliubchenko commited on
Commit
2ee677b
·
1 Parent(s): 7a9e429

added trace

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -19,6 +19,13 @@ def process_image(input_image, model_name, conf):
19
  print('conf: ')
20
  print(conf)
21
  print('start processing: ')
 
 
 
 
 
 
 
22
  model_index = model_names.index(model_name)
23
  print('model_index: ')
24
  print(model_index)
 
19
  print('conf: ')
20
  print(conf)
21
  print('start processing: ')
22
+
23
+ if model_name is None:
24
+ model_name = model_names[0]
25
+
26
+ if conf is None:
27
+ conf = 0.6
28
+
29
  model_index = model_names.index(model_name)
30
  print('model_index: ')
31
  print(model_index)