sanjay7178 commited on
Commit
fcdc0b9
·
1 Parent(s): 4b3f0c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ async def predict_image(img):
53
  # print(json.loads(res))
54
  spoof_res = json.loads(res)['spoof_res']
55
  annotated_image = json.loads(res)['annotated_image']
56
- conf_score = float( json.loads(spoof_res)['confidence_score2'])
57
 
58
  # img_base64 to plot
59
  img = Image.open(io.BytesIO(base64.b64decode(annotated_image)))
 
53
  # print(json.loads(res))
54
  spoof_res = json.loads(res)['spoof_res']
55
  annotated_image = json.loads(res)['annotated_image']
56
+ conf_score = float( json.loads(spoof_res)['confidence_score'])
57
 
58
  # img_base64 to plot
59
  img = Image.open(io.BytesIO(base64.b64decode(annotated_image)))