PHS-BERT / app.py
publichealthsurveillance's picture
Update app.py
69c17ca
raw
history blame
298 Bytes
import ktrain
import gradio as gr
predictor = ktrain.load_predictor('2bert')
def func(text):
return "hello"
'''
results = predictor.predict(str(text))
results = [int(element) for element in results]
return str(results[0])
'''
gr.Interface(fn=func, inputs="text", outputs="text").launch()