Logeswaransr commited on
Commit
5d839b8
1 Parent(s): c44137f

ner FILE Updated

Browse files
Files changed (1) hide show
  1. ner.py +2 -4
ner.py CHANGED
@@ -34,7 +34,5 @@ def ner(input):
34
  output = merge_tokens(output)
35
  return {"text": input, "entities": output}
36
 
37
- content = json.load(open('hf_api.json'))
38
- ner_api = content['named_entity_recognition']
39
- model_url = ner_api['API_URL']
40
- model_api = ner_api['API_Key']
 
34
  output = merge_tokens(output)
35
  return {"text": input, "entities": output}
36
 
37
+ model_url = os.environ['API_URL']
38
+ model_api = os.environ['API_Key']