Geek7 commited on
Commit
46ed025
·
verified ·
1 Parent(s): ded3931

Update myapp.py

Browse files
Files changed (1) hide show
  1. myapp.py +1 -2
myapp.py CHANGED
@@ -69,5 +69,4 @@ def generate_image():
69
 
70
  # Add this block to make sure your app runs when called
71
  if __name__ == "__main__":
72
- # Run the Flask app using Gunicorn
73
- os.system("gunicorn -w 4 -b 0.0.0.0:7860 myapp:myapp") # 4 worker processes
 
69
 
70
  # Add this block to make sure your app runs when called
71
  if __name__ == "__main__":
72
+ myapp.run(host='0.0.0.0', port=7860) # Run the Flask app on port 7860