binaychandra commited on
Commit
70c810f
·
1 Parent(s): a77151c

fix uvicorn issue

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -25,7 +25,6 @@ import time
25
  import json
26
 
27
  app = Flask(__name__, static_url_path='/static')
28
- app.secret_key = 'test'
29
 
30
  @app.route("/validate_learning", methods=['GET'])
31
  def load_learning():
@@ -237,6 +236,6 @@ def hometest():
237
  return redirect(url_for('data'))
238
 
239
  if __name__ == '__main__':
240
- #app.run(debug=True)
241
- from waitress import serve
242
- serve(app, host="0.0.0.0", port=8080)
 
25
  import json
26
 
27
  app = Flask(__name__, static_url_path='/static')
 
28
 
29
  @app.route("/validate_learning", methods=['GET'])
30
  def load_learning():
 
236
  return redirect(url_for('data'))
237
 
238
  if __name__ == '__main__':
239
+ app.run(debug=True)
240
+ # from waitress import serve
241
+ # serve(app, host="0.0.0.0")