Mr-Vicky-01 commited on
Commit
ff8a217
1 Parent(s): ac59d27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,7 +8,9 @@ from IPython.display import Audio
8
  # from dotenv import load_dotenv
9
  # load_dotenv() # to load all the env variables
10
 
11
- os.environ['HUGGINGFACEHUB_API_TOKEN'] = os.getenv("HUGGINGFACE_API_TOKEN")
 
 
12
 
13
 
14
  def get_summary_from_url(url):
 
8
  # from dotenv import load_dotenv
9
  # load_dotenv() # to load all the env variables
10
 
11
+ api_key = os.getenv("HUGGINGFACE_API_TOKEN")
12
+
13
+ os.environ['HUGGINGFACEHUB_API_TOKEN'] = api_key
14
 
15
 
16
  def get_summary_from_url(url):