File size: 187 Bytes
6973085
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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()