lp128396 commited on
Commit
1e2c914
·
verified ·
1 Parent(s): 84ae5c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -29,6 +29,11 @@ def preprocess_image(img_bytes):
29
  def home():
30
  return "API is running!"
31
 
 
 
 
 
 
32
  @app.route('/predict', methods=['POST'])
33
  def predict():
34
  file = request.files.get('image')
@@ -62,3 +67,5 @@ def predict():
62
  result['fruitType'] = top1_label
63
  result['fresh'] = 'Fresh' in top1_label
64
  return jsonify(result)
 
 
 
29
  def home():
30
  return "API is running!"
31
 
32
+ @app.route('/favicon.ico')
33
+ def favicon():
34
+ return '', 204 # or serve a real favicon if needed
35
+
36
+
37
  @app.route('/predict', methods=['POST'])
38
  def predict():
39
  file = request.files.get('image')
 
67
  result['fruitType'] = top1_label
68
  result['fresh'] = 'Fresh' in top1_label
69
  return jsonify(result)
70
+
71
+