Spaces:
Runtime error
Runtime error
File size: 579 Bytes
a61cbf4 0caffa0 a61cbf4 0caffa0 472d2ae a61cbf4 |
1 2 3 4 5 6 7 8 9 10 11 12 |
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 = "<p style= 'color:yellow'>Understand components of sentences in a better way</p>"
article = "<p style= 'color:yellow; text-align:center;'><a href='https://github.com/Vishnunkumar/nligraphspacy' target='_blank'>nligraphspacy</a></p>"
iface = gr.Interface(fn=greet, inputs="text", outputs="json", title=title, description=description, article=article)
iface.launch() |