Not-Adam commited on
Commit
f72bcf1
1 Parent(s): f61d0df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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):