David Kagramanyan commited on
Commit
54a1079
1 Parent(s): f071110

added secrets

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -4,6 +4,7 @@ import os
4
  import requests
5
 
6
  from spacy import displacy
 
7
 
8
  os.system("python -m spacy download en_core_web_md")
9
  import spacy
@@ -72,10 +73,11 @@ def set_entities(sentence, entities):
72
 
73
 
74
  def apply_ner(input_text_message: str):
75
- endpoint_url = 'https://on1m82uknekghqeh.us-east-1.aws.endpoints.huggingface.cloud'
 
76
 
77
  headers = {
78
- 'Authorization': 'Bearer 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',
79
  'Content-Type': 'application/json',
80
  }
81
 
 
4
  import requests
5
 
6
  from spacy import displacy
7
+ import streamlit as st
8
 
9
  os.system("python -m spacy download en_core_web_md")
10
  import spacy
 
73
 
74
 
75
  def apply_ner(input_text_message: str):
76
+ auth_endpoint_token = st.secrets["auth_endpoint_token"]
77
+ endpoint_url = st.secrets["endpoint_url"]
78
 
79
  headers = {
80
+ 'Authorization': auth_endpoint_token,
81
  'Content-Type': 'application/json',
82
  }
83