File size: 428 Bytes
a720154
 
 
 
 
56ab25a
 
 
 
 
 
 
 
a720154
 
ec8bff1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from flask import *

app=Flask(__name__)
@app.route('/')
def iris():
   return render_template_string("""
        <html>
            <head><title>Hello Hugging Face</title></head>
            <body style="text-align: center; margin-top: 50px;">
                <h1>Hello, World from Flask on Hugging Face Spaces!</h1>
            </body>
        </html>
    """)

if __name__ == '__main__':
    app.run(host='0.0.0.0',port=7862)