File size: 313 Bytes
7fb123f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from flask import Flask

app = Flask(__name__)

@app.route("/")
def home():
    return """
    <h1>🚀 HF Space is Working!</h1>
    <p>Hosted successfully with Docker.</p>
    """

@app.route("/health")
def health():
    return {"status": "ok"}

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=7860)