Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,10 +29,10 @@ import requests
|
|
29 |
import re
|
30 |
from PIL import Image
|
31 |
import streamlit as st
|
32 |
-
import os
|
33 |
|
34 |
-
key=os.environ.getattribute("api_key")
|
35 |
-
print(key)
|
36 |
API_URL = "https://api-inference.huggingface.co/models/flair/ner-english-large"
|
37 |
headers = {"Authorization": st.secret["api_key"]}
|
38 |
|
|
|
29 |
import re
|
30 |
from PIL import Image
|
31 |
import streamlit as st
|
32 |
+
# import os
|
33 |
|
34 |
+
# key=os.environ.getattribute("api_key")
|
35 |
+
# print(key)
|
36 |
API_URL = "https://api-inference.huggingface.co/models/flair/ner-english-large"
|
37 |
headers = {"Authorization": st.secret["api_key"]}
|
38 |
|