login
This commit is contained in:
parent
7d7578833e
commit
4f6a640bbb
4
hft.py
4
hft.py
|
|
@ -9,6 +9,10 @@ import pytesseract
|
||||||
import docx2txt
|
import docx2txt
|
||||||
import PyPDF2
|
import PyPDF2
|
||||||
|
|
||||||
|
from huggingface_hub import login
|
||||||
|
|
||||||
|
login(f"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")
|
||||||
|
|
||||||
def load_file_catalog(catalog_path):
|
def load_file_catalog(catalog_path):
|
||||||
with open(catalog_path, 'r', encoding='utf-8') as file:
|
with open(catalog_path, 'r', encoding='utf-8') as file:
|
||||||
return json.load(file)
|
return json.load(file)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue