akhaliq HF staff commited on
Commit
b48cf7d
1 Parent(s): 1d30189

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def inference(img):
7
  result = model.predict([img])
8
  print(result)
9
  for key, value in result[0].items():
10
- result[key] = float(value)
11
  return result[0]
12
 
13
 
7
  result = model.predict([img])
8
  print(result)
9
  for key, value in result[0].items():
10
+ result[0][key] = float(value)
11
  return result[0]
12
 
13