Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
ddosxd/example_flask
PandaArtStation
/
example_flask
like
0
Sleeping
App
Files
Files
Community
5f42447
example_flask
/
main.py
ddosxd
Create main.py
f8ac039
verified
10 months ago
raw
Copy download link
history
blame
Safe
247 Bytes
from
flask
import
Flask, jsonify
app = Flask(__name__)
@app.route(
'/'
)
def
main
():
return
jsonify({
'status'
:
200
,
'content'
:
"Hello, world"
})
if
__name__ ==
'__main__'
:
app.run(host=
'0.0.0.0'
, port=
7860
, debug=
False
)