File size: 250 Bytes
a61cbf4
0caffa0
a61cbf4
0caffa0
 
 
 
 
a61cbf4
1
2
3
4
5
6
7
8
9
import gradio as gr
from nligraphspacy import NLIGRAPH

def greet(text):
    nligraph = NLIGRAPH.RelationEntityExtract(text)
    return nligraph.get_seperate_entities()
    
iface = gr.Interface(fn=greet, inputs="text", outputs="json")
iface.launch()