Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
|
|
|
|
1 |
import os
|
2 |
|
3 |
if __name__ == "__main__":
|
4 |
-
# Run the Flask app using Gunicorn
|
5 |
-
|
6 |
-
os.system(command)
|
|
|
1 |
+
# app.py
|
2 |
+
|
3 |
import os
|
4 |
|
5 |
if __name__ == "__main__":
|
6 |
+
# Run the Flask app using Gunicorn
|
7 |
+
os.system("gunicorn -w 4 -b 0.0.0.0:7860 myapp:myapp") # 4 worker processes
|
|