ThorkildFregi commited on
Commit
641f4a6
1 Parent(s): 02b70cf

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -0
main.py CHANGED
@@ -105,5 +105,11 @@ def prediction():
105
  else:
106
  return redirect(url_for("home"))
107
 
 
 
 
 
 
 
108
  if __name__ == "__main__":
109
  app.run(host="0.0.0.0", port=7860, debug=True)
 
105
  else:
106
  return redirect(url_for("home"))
107
 
108
+ @app.route('/uploads/model.sav')
109
+ def download_model():
110
+ path = os.path.dirname(__file__)
111
+
112
+ return send_from_directory(path, "model.sav")
113
+
114
  if __name__ == "__main__":
115
  app.run(host="0.0.0.0", port=7860, debug=True)