Yash goyal commited on
Commit
7da36ae
·
verified ·
1 Parent(s): 2cb62ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -333,4 +333,7 @@ def download_report():
333
  return send_file(filepath, as_attachment=True)
334
 
335
  if __name__ == "__main__":
336
- app.run(host="0.0.0.0", port=7860)
 
 
 
 
333
  return send_file(filepath, as_attachment=True)
334
 
335
  if __name__ == "__main__":
336
+ import os
337
+ port = int(os.environ.get("PORT", 5000))
338
+ app.run(host="0.0.0.0", port=port)
339
+