Spaces:
Runtime error
Runtime error
import ktrain | |
import gradio as gr | |
predictor = ktrain.load_predictor('bert') | |
def func(text): | |
results = predictor.predict(str(text)) | |
return str(results) | |
gr.Interface(fn=func, inputs="text", outputs="text").launch() | |