Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ client = AsyncInferenceClient()
|
|
5 |
|
6 |
def image_classifier(inp):
|
7 |
class_names = ["0", "1"]
|
8 |
-
inp.save("why.png")
|
9 |
sunflower_path = "why.png"
|
10 |
r = asyncio.run(client.zero_shot_image_classification("why.png", labels=["mouth", "other"]))
|
11 |
c = {}
|
|
|
5 |
|
6 |
def image_classifier(inp):
|
7 |
class_names = ["0", "1"]
|
8 |
+
inp.save("why.png")
|
9 |
sunflower_path = "why.png"
|
10 |
r = asyncio.run(client.zero_shot_image_classification("why.png", labels=["mouth", "other"]))
|
11 |
c = {}
|