File size: 239 Bytes
2b1e4b7
96070b5
2b1e4b7
96070b5
2b1e4b7
96070b5
 
 
 
 
 
2b1e4b7
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
import wbgtopic

clf = wbgtopic.WBGDocTopic()


def fn(inputs):
    return clf.suggest_topics(inputs)


demo = gr.Interface(fn=clf.suggest_topics, inputs="text", outputs=gr.JSON(label="Suggested topics"))
demo.launch()