abdullahsajid commited on
Commit
c95a4d5
·
verified ·
1 Parent(s): e9ac814

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -46,9 +46,7 @@ model_resnet50_celeba.eval()
46
  model_yolo9 = YOLO('yolo9_best.pt')
47
  print('Models Loaded Successfully')
48
 
49
- @app.route('/')
50
- def home():
51
- return "Welcome to the Flask API!"
52
 
53
 
54
  @app.route('/api/data', methods=['GET'])
@@ -67,6 +65,11 @@ def get_data():
67
  }
68
  return jsonify(data)
69
 
 
 
 
 
 
70
  @app.route('/api/data', methods=['POST'])
71
  def post_data():
72
  data = request.json
 
46
  model_yolo9 = YOLO('yolo9_best.pt')
47
  print('Models Loaded Successfully')
48
 
49
+
 
 
50
 
51
 
52
  @app.route('/api/data', methods=['GET'])
 
65
  }
66
  return jsonify(data)
67
 
68
+
69
+ @app.route('/')
70
+ def home():
71
+ return "Welcome to the Flask API!"
72
+
73
  @app.route('/api/data', methods=['POST'])
74
  def post_data():
75
  data = request.json