tommy24 commited on
Commit
4dbb024
·
1 Parent(s): 38a36a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def classify(image_path, text_input):
75
 
76
  reply = response["choices"][0]["message"]["content"]
77
 
78
- output.append({"type": max_label, "prediction_value": round(max_prediction_value, 2), "content": reply})
79
 
80
  return output # Return the populated output list
81
  else:
 
75
 
76
  reply = response["choices"][0]["message"]["content"]
77
 
78
+ output.append({"type": max_label, "prediction_value": rounded_value, "content": reply})
79
 
80
  return output # Return the populated output list
81
  else: