Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,9 @@ from nligraphspacy import NLIGRAPH
|
|
4 |
def greet(text):
|
5 |
nligraph = NLIGRAPH.RelationEntityExtract(text)
|
6 |
return nligraph.get_seperate_entities()
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
9 |
iface.launch()
|
|
|
4 |
def greet(text):
|
5 |
nligraph = NLIGRAPH.RelationEntityExtract(text)
|
6 |
return nligraph.get_seperate_entities()
|
7 |
+
|
8 |
+
title = "Knowledge Graph NLP"
|
9 |
+
description = "<p style= 'color:yellow'>Understand components of sentences in a better way</p>"
|
10 |
+
article = "<p style= 'color:yellow; text-align:center;'><a href='https://github.com/Vishnunkumar/nligraphspacy' target='_blank'>nligraphspacy</a></p>"
|
11 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="json", title=title, description=description, article=article)
|
12 |
iface.launch()
|