harshildarji commited on
Commit
bd27a70
·
verified ·
1 Parent(s): bdcb2c9

change tkn read

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -159,7 +159,7 @@ with col1:
159
  st.title(ui_text[lang]["title"])
160
 
161
  # Initialization for German Legal NER
162
- tkn = open("./token").read()
163
  tokenizer = AutoTokenizer.from_pretrained("harshildarji/JuraBERT", use_auth_token=tkn)
164
  model = AutoModelForTokenClassification.from_pretrained(
165
  "harshildarji/JuraBERT", use_auth_token=tkn
 
159
  st.title(ui_text[lang]["title"])
160
 
161
  # Initialization for German Legal NER
162
+ tkn = os.getenv("tkn")
163
  tokenizer = AutoTokenizer.from_pretrained("harshildarji/JuraBERT", use_auth_token=tkn)
164
  model = AutoModelForTokenClassification.from_pretrained(
165
  "harshildarji/JuraBERT", use_auth_token=tkn