Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -194,7 +194,7 @@ def get_most_common_label(responses):
|
|
194 |
feature_scores[label] += score
|
195 |
|
196 |
max_label = max(feature_scores, key=feature_scores.get)
|
197 |
-
return max_label, feature_scores[max_label] / len(responses)
|
198 |
|
199 |
@spaces.GPU
|
200 |
def get_predicted_attributes(image_urls, category):
|
|
|
194 |
feature_scores[label] += score
|
195 |
|
196 |
max_label = max(feature_scores, key=feature_scores.get)
|
197 |
+
return max_label, feature_scores[max_label] / len(responses)
|
198 |
|
199 |
@spaces.GPU
|
200 |
def get_predicted_attributes(image_urls, category):
|