missvector commited on
Commit
96c5059
·
verified ·
1 Parent(s): 300f165

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -12,6 +12,7 @@ text = st.text_input("Enter your text", "")
12
  client = InferenceClient("deepseek-ai/DeepSeek-R1-Distill-Qwen-32B", token=os.getenv('HF_TOKEN'))
13
  aggile = Aggile(client=client)
14
  # Form triplets from the text from string
15
- triplets = aggile.form_triples('This is a sample text')
 
16
  # Visualize graph based on generated triplets
17
  st.html(Graph(triplets).build_graph()) # Saves and shows graph_with_predicates.html
 
12
  client = InferenceClient("deepseek-ai/DeepSeek-R1-Distill-Qwen-32B", token=os.getenv('HF_TOKEN'))
13
  aggile = Aggile(client=client)
14
  # Form triplets from the text from string
15
+ triplets = aggile.form_triples(text)
16
+ st.text(triplets)
17
  # Visualize graph based on generated triplets
18
  st.html(Graph(triplets).build_graph()) # Saves and shows graph_with_predicates.html