banjiola commited on
Commit
a889b1c
·
verified ·
1 Parent(s): 6e7dd0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -4,18 +4,14 @@
4
  # Import Necessary Libraries
5
  import requests, json
6
  import os
7
- from dotenv import load_dotenv, find_dotenv
8
  import gradio as gr
9
 
10
 
11
 
12
- # reads local .env file
13
- _ = load_dotenv(find_dotenv())
14
-
15
  # load api key and endpoints
16
- hf_api_key = os.environ['HUGGINGFACEHUB_API_TOKEN'] # This should not be hardcoded
17
- sum_endpoint = os.environ["API_URL_SUMMARIZE"] # summarization endpoint
18
- ner_endpoint = os.environ["API_URL_NER"] # named entity recognization endpoint
19
 
20
 
21
 
 
4
  # Import Necessary Libraries
5
  import requests, json
6
  import os
 
7
  import gradio as gr
8
 
9
 
10
 
 
 
 
11
  # load api key and endpoints
12
+ hf_api_key = os.environ.get('HUGGINGFACEHUB_API_TOKEN')
13
+ sum_endpoint = os.environ.get("API_URL_SUMMARIZE") # summarization endpoint
14
+ ner_endpoint = os.environ.get("API_URL_NER") # named entity recognization endpoint
15
 
16
 
17