Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from flask import Flask
|
3 |
+
|
4 |
+
app = Flask(__name__)
|
5 |
+
|
6 |
+
@app.route('/')
|
7 |
+
def home():
|
8 |
+
return """
|
9 |
+
<center>
|
10 |
+
<img src="https://i.giphy.com/media/3o7abAHdYvZdBNnGZq/giphy.webp" style="border-radius: 12px;"/>
|
11 |
+
</center>
|
12 |
+
<style>
|
13 |
+
body {
|
14 |
+
background: antiquewhite;
|
15 |
+
}
|
16 |
+
</style>"""
|
17 |
+
|
18 |
+
if __name__ == "__main__":
|
19 |
+
port = int(os.environ.get("PORT", 7860))
|
20 |
+
app.run(host='0.0.0.0', port=port)
|