Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import pipeline
|
|
9 |
|
10 |
class Image_classification:
|
11 |
def __init__(self):
|
12 |
-
|
13 |
|
14 |
|
15 |
def unzip_image_data(self) -> str:
|
@@ -65,8 +65,8 @@ class Image_classification:
|
|
65 |
Dict[str, float]: A dictionary of classification labels and their corresponding scores.
|
66 |
"""
|
67 |
try:
|
68 |
-
|
69 |
-
classifier = pipeline("image-classification", model=
|
70 |
result= classifier(image)
|
71 |
return result
|
72 |
except Exception as e:
|
|
|
9 |
|
10 |
class Image_classification:
|
11 |
def __init__(self):
|
12 |
+
pass
|
13 |
|
14 |
|
15 |
def unzip_image_data(self) -> str:
|
|
|
65 |
Dict[str, float]: A dictionary of classification labels and their corresponding scores.
|
66 |
"""
|
67 |
try:
|
68 |
+
|
69 |
+
classifier = pipeline("image-classification", model=model)
|
70 |
result= classifier(image)
|
71 |
return result
|
72 |
except Exception as e:
|