Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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}
|