File size: 298 Bytes
6973085
 
 
69c17ca
6973085
 
b557549
 
6c827e9
d99cb75
6c827e9
b557549
6973085
3aaf0d3
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()