Spaces:
Build error
Build error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from flask import Flask
|
| 2 |
+
|
| 3 |
+
app = Flask(__name__)
|
| 4 |
+
|
| 5 |
+
@app.route('/')
|
| 6 |
+
def hello():
|
| 7 |
+
return "Hello Treyvon! Python is running on Port 7860."
|
| 8 |
+
|
| 9 |
+
if __name__ == '__main__':
|
| 10 |
+
# This is for local testing; Docker uses Gunicorn CMD above
|
| 11 |
+
app.run(host='0.0.0.0', port=7860)
|