Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ import streamlit as st
|
|
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.
|
38 |
|
39 |
## Image uploading function ##
|
40 |
def image_upload_and_ocr(reader):
|
|
|
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.secrets["api_key"]}
|
38 |
|
39 |
## Image uploading function ##
|
40 |
def image_upload_and_ocr(reader):
|