Araeynn commited on
Commit
7a8f49a
·
verified ·
1 Parent(s): 14e4177

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def image_classifier(inp):
10
  r = asyncio.run(client.zero_shot_image_classification("why.png", labels=["mouth", "other"]))
11
  c = {}
12
  c[r[0]["label"]] = r[0]["score"]
13
- c[r[1]["label"]] = r[1]["score"]
14
  return c
15
 
16
 
 
10
  r = asyncio.run(client.zero_shot_image_classification("why.png", labels=["mouth", "other"]))
11
  c = {}
12
  c[r[0]["label"]] = r[0]["score"]
13
+ c[r[1]["label"]] = 1 - r[0]["score"]
14
  return c
15
 
16