Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
publichealthsurveillance
/
PHS-BERT
like
2
Runtime error
App
Files
Files
Community
aacf12f
PHS-BERT
/
app.py
Chan Lee
M
6973085
over 2 years ago
raw
Copy download link
history
blame
187 Bytes
import
ktrain
import
gradio
as
gr
model = ktrain.load_predictor(
'bert'
).model
def
func
(
text
):
return
model.predict(text)
gr.Interface(fn=func, inputs=
"text"
, outputs=
"text"
).launch()