rohithk-03 commited on
Commit
7dc12c9
·
1 Parent(s): a3f3a1f

update model code

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -233,7 +233,7 @@ def predict():
233
  tempfile.gettempdir(), file.filename.lower())
234
  image.save(image_save_path)
235
  a, b = model.check_file(temp_path)[0]
236
- return jsonify({"message": a, confidence: b, "saved_path": image_save_path})
237
 
238
 
239
  if __name__ == "__main__":
 
233
  tempfile.gettempdir(), file.filename.lower())
234
  image.save(image_save_path)
235
  a, b = model.check_file(temp_path)[0]
236
+ return jsonify({"message": a, "confidence": b, "saved_path": image_save_path})
237
 
238
 
239
  if __name__ == "__main__":