title: when i test api it shows method not allowed error
body: <p>i am trying to make api for prediction using deep learning model while i test the api is shows The method is not allowed for the requested URL please help me to solve problem.
  please tell me whats going wrong in this code.</p>
  
  <p>app.py file.</p>
  
  <pre><code>from flask import Flask,Response , request , flash , url_for,jsonify
  from flask import Flask
  app = Flask(__name__)
  
  
  @app.route('/')
  def hello():
     return "Hello World!"
  @app.route('/predict',methods=['POST'])
  def classify():
    app.logger.debug('Running classifier')
    upload = request.files['data']
    image = load_image(upload)
    #load_image() is to process image :
    print('image ready')
    try:
      prediction = run_model(image)
      return _json_parse({"prediction": prediction})
    except FileNotFoundError as e:
      return abort('Unable to locate image: %s.' % str(e), 503)
    except Exception as e:
      return abort('Unable to process image: %s.' % str(e), 500)
  
  
  
  if __name__ == '__main__':
     app.run()
  </code></pre>
  
  <p>help would be appreciated.</p>