Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
|
|
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
|