NBayer commited on
Commit
c141399
1 Parent(s): d26ce5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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("HF_AUTH")}
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"