Reshama commited on
Commit
7a1b386
·
verified ·
1 Parent(s): 1df2bef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,6 @@ import os
3
  from llms import prompt_llm_image, prompt_llm, parse_bullet_points
4
  app = Flask(__name__)
5
 
6
- from flask import jsonify
7
 
8
  @app.get("/health")
9
  def health():
@@ -108,4 +107,5 @@ def uploaded_file(filename):
108
  return send_from_directory(UPLOAD_FOLDER, filename)
109
 
110
  if __name__ == "__main__":
111
- app.run(debug=True, port=5005)
 
 
3
  from llms import prompt_llm_image, prompt_llm, parse_bullet_points
4
  app = Flask(__name__)
5
 
 
6
 
7
  @app.get("/health")
8
  def health():
 
107
  return send_from_directory(UPLOAD_FOLDER, filename)
108
 
109
  if __name__ == "__main__":
110
+ import os
111
+ app.run(host="0.0.0.0", port=int(os.getenv("PORT", 7860)))