besijar commited on
Commit
fe88e35
1 Parent(s): fe93e28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,5 +1,8 @@
1
  import requests
2
  import gradio as gr
 
 
 
3
 
4
  API_URL = "https://api-inference.huggingface.co/models/allenai/bidaf-elmo"
5
  headers = {"Authorization": HF_TOKEN}
 
1
  import requests
2
  import gradio as gr
3
+ import os
4
+
5
+ HF_TOKEN = os.environ.get("HF_TOKEN")
6
 
7
  API_URL = "https://api-inference.huggingface.co/models/allenai/bidaf-elmo"
8
  headers = {"Authorization": HF_TOKEN}