Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
chipling
/
fasthost
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
fasthost
/
examples
/
flask
/
main.py
chipling
Upload 26 files
65d3b67
verified
about 1 year ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
216 Bytes
from
flask
import
Flask
from
flask_cors
import
CORS
app = Flask(__name__)
CORS(app)
@app.route(
'/'
)
def
index
():
return
"Welcome to the Flask app!"
@app.route(
'/hello'
)
def
hello
():
return
"Hello, World!"