Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
DanteOz
/
Minimal-Endpoint
like
2
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
a70aa18
Minimal-Endpoint
/
app.py
DanteOz
Add flask app and dependancy
dd0f0f7
over 3 years ago
raw
Copy download link
history
blame
Safe
253 Bytes
from
flask
import
Flask
app = Flask(__name__)
@app.route(
"/"
)
def
index
():
return
"<p>Hello, World!</p>"
@app.route(
"/predict/"
)
def
predict
():
return
{
"output"
:
"prediction"
}
if
__name__ ==
"__main__"
:
app.run(host=
"0.0.0.0"
, port=
7680
)