jbbove commited on
Commit
704ca40
·
verified ·
1 Parent(s): 50bdf93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -12,6 +12,12 @@ from Gradio_UI import GradioUI
12
  def extract_knowledge_graph(text: str) -> str:
13
  """
14
  Uses a Hugging Face chat model to extract entities and relations from the input text.
 
 
 
 
 
 
15
  """
16
  HF_TOKEN = os.environ.get("HF_TOKEN")
17
  if not HF_TOKEN:
 
12
  def extract_knowledge_graph(text: str) -> str:
13
  """
14
  Uses a Hugging Face chat model to extract entities and relations from the input text.
15
+
16
+ Args:
17
+ text: The input text string containing entities and relationships.
18
+
19
+ Returns:
20
+ A string representing the knowledge graph in triple format.
21
  """
22
  HF_TOKEN = os.environ.get("HF_TOKEN")
23
  if not HF_TOKEN: