import gradio as gr from nligraphspacy import NLIGRAPH def greet(text): nligraph = NLIGRAPH.RelationEntityExtract(text) return nligraph.get_seperate_entities() title = "Knowledge Graph NLP" description = "
Understand components of sentences in a better way
" article = "" iface = gr.Interface(fn=greet, inputs="text", outputs="json", title=title, description=description, article=article) iface.launch()