pawanmau01 commited on
Commit
ab95ad6
1 Parent(s): fb12fe1

Added Run File

Browse files
Files changed (2) hide show
  1. requirements.txt +11 -0
  2. run.py +11 -0
requirements.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Flask==2.0.2
2
+ Werkzeug==2.0.2
3
+ torch
4
+ ultralytics
5
+ opencv-python-headless
6
+ Pillow
7
+ requests
8
+ pytesseract
9
+ gunicorn
10
+ openpyxl
11
+ python-dotenv
run.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from app import create_app
3
+
4
+ app = create_app()
5
+
6
+ if __name__ == "__main__":
7
+ if os.getenv("FLASK_ENV") == "production":
8
+ from gunicorn.app.wsgiapp import WSGIApplication
9
+ WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
10
+ else:
11
+ app.run(host='0.0.0.0', port=3100)