-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.py
More file actions
36 lines (31 loc) · 871 Bytes
/
Copy pathserver.py
File metadata and controls
36 lines (31 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from flask import Flask, render_template_string
app = Flask(__name__)
PIGEON_IMAGE_URL = "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRFBRDMRt8uH1Z002h_VT2t3ESZYk89BloI2g&s"
@app.route("/")
def pigeon():
return render_template_string("""
<!DOCTYPE html>
<html>
<head>
<title>Pigeon</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #111;
}
img {
max-width: 90%;
max-height: 90%;
}
</style>
</head>
<body>
<img src="{{ url }}" alt="Pigeon">
</body>
</html>
""", url=PIGEON_IMAGE_URL)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, debug=True)