Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
HMPhuoc/toxic
HMPhuoc
/
toxic_test
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
4de9537
toxic_test
/
main.py
HMPhuoc
add test route
4de9537
about 1 year ago
raw
Copy download link
history
blame
256 Bytes
from
flask
import
Flask
app = Flask(__name__)
@app.route(
"/"
)
def
hello
():
return
{
"hello"
:
"Deploy success"
}
@app.route(
"/test"
)
def
test
():
return
"Test success"
@app.route(
"/test/<text>"
)
def
returnText
(
text
):
return
f'The text is
{text}
'