Spaces:
Runtime error
Runtime error
File size: 258 Bytes
6973085 3d3d5f3 6973085 3d3d5f3 d99cb75 6973085 3aaf0d3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import ktrain
import gradio as gr
predictor = ktrain.load_predictor('bert')
def func(text):
results = predictor.predict(text)
results = [int(element) for element in results]
return results
gr.Interface(fn=func, inputs="text", outputs="text").launch()
|