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...
bf59c35
toxic_test
/
main.py
HMPhuoc
add route
bf59c35
about 1 year ago
raw
Copy download link
history
blame
197 Bytes
from
flask
import
Flask
app = Flask(__name__)
@app.route(
"/"
)
def
hello
():
return
{
"hello"
:
"Deploy success"
}
@app.route(
"/test/<text>"
)
def
returnText
(
text
):
return
f'The text is
{text}
'