Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,10 +32,10 @@ def image_to_query(imagefile):
|
|
32 |
|
33 |
output: Query for the LLM
|
34 |
"""
|
35 |
-
image = Image.open(imagefile)
|
36 |
classifier = pipeline("image-classification", model = "nprasad24/bean_classifier")
|
37 |
|
38 |
-
scores = classifier(
|
39 |
|
40 |
# Get the dictionary with the maximum score
|
41 |
max_score_dict = max(scores, key=lambda x: x['score'])
|
|
|
32 |
|
33 |
output: Query for the LLM
|
34 |
"""
|
35 |
+
#image = Image.open(imagefile)
|
36 |
classifier = pipeline("image-classification", model = "nprasad24/bean_classifier")
|
37 |
|
38 |
+
scores = classifier(imagefile)
|
39 |
|
40 |
# Get the dictionary with the maximum score
|
41 |
max_score_dict = max(scores, key=lambda x: x['score'])
|