Spaces:
Runtime error
Runtime error
Commit
·
fcdc0b9
1
Parent(s):
4b3f0c7
Update app.py
Browse files
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)['
|
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)))
|