Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
HMPhuoc
/
toxic
like
0
Running
App
Files
Files
Community
4de9537
toxic
/
main.py
HMPhuoc
add test route
4de9537
9 months 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}
'