Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,6 @@ import os
|
|
4 |
import PyPDF2
|
5 |
import requests
|
6 |
|
7 |
-
st.write(st.secrets("TEST"))
|
8 |
-
|
9 |
def get_pdf_text(pdf_path):
|
10 |
# creating a pdf file object
|
11 |
pdfFileObj = open(pdf_path, 'rb')
|
@@ -25,7 +23,7 @@ def get_pdf_text(pdf_path):
|
|
25 |
|
26 |
return pdf_text
|
27 |
|
28 |
-
headers = {"Authorization": st.secrets
|
29 |
|
30 |
def create_tags(payload):
|
31 |
API_URL_TAGS = "https://api-inference.huggingface.co/models/fabiochiu/t5-base-tag-generation"
|
|
|
4 |
import PyPDF2
|
5 |
import requests
|
6 |
|
|
|
|
|
7 |
def get_pdf_text(pdf_path):
|
8 |
# creating a pdf file object
|
9 |
pdfFileObj = open(pdf_path, 'rb')
|
|
|
23 |
|
24 |
return pdf_text
|
25 |
|
26 |
+
headers = {"Authorization": st.secrets["HF_AUTH"]}
|
27 |
|
28 |
def create_tags(payload):
|
29 |
API_URL_TAGS = "https://api-inference.huggingface.co/models/fabiochiu/t5-base-tag-generation"
|