missvector commited on
Commit
2e46052
·
verified ·
1 Parent(s): 3b77d0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,13 +2,14 @@ import sys
2
  from huggingface_hub import InferenceClient
3
  from aggile import Aggile, Graph
4
  import streamlit as st
 
5
 
6
  st.title('AGGILE: Automated Graph Generation for Inference and Language Exploration')
7
 
8
  text = st.text_input("Enter your text", "")
9
 
10
  # Initialize Aggile with your HuggingFace credentials; change the model if needed
11
- client = InferenceClient("deepseek-ai/DeepSeek-R1-Distill-Qwen-32B", token=token)
12
  aggile = Aggile(client=client)
13
  # Form triplets from the text from string
14
  triplets = aggile.form_triples('This is a sample text')
 
2
  from huggingface_hub import InferenceClient
3
  from aggile import Aggile, Graph
4
  import streamlit as st
5
+ import os
6
 
7
  st.title('AGGILE: Automated Graph Generation for Inference and Language Exploration')
8
 
9
  text = st.text_input("Enter your text", "")
10
 
11
  # Initialize Aggile with your HuggingFace credentials; change the model if needed
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')