Skip to content

Commit

Permalink
fix model send_file breaking due to flask update
Browse files Browse the repository at this point in the history
  • Loading branch information
benfoley committed Nov 2, 2022
1 parent caa24b9 commit b60416a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elpis/endpoints/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def download():
)
logger.info(f"Zipped model created at path: {zipped_model_path}")
try:
return send_file(zipped_model_path, as_attachment=True, cache_timeout=0)
return send_file(zipped_model_path, as_attachment=True, max_age=None)
except InterfaceError as e:
return jsonify({"status": 500, "error": e.human_message})

Expand Down

0 comments on commit b60416a

Please sign in to comment.