bggpt / app.py
Iceman08's picture
Update app.py
6656606 verified
raw
history blame contribute delete
724 Bytes
from huggingface_hub import hf_hub_download
HUGGING_FACE_API_KEY = "<hugging-face-api-key-goes-here>"
# Replace this if you want to use a different model
model_id = "INSAIT-Institute/BgGPT-7B-Instruct-v0.1"
filenames = [
".gitattributes",
"README.md",
"config.json",
"generation_config.json",
"model-00001-of-00002.safetensors",
"model-00002-of-00002.safetensors",
"model.safetensors.index.json",
"special_tokens_map.json",
"tokenizer.json",
"tokenizer.model",
"tokenizer_config.json"
]
for filename in filenames:
downloaded_model_path = hf_hub_download(
repo_id=model_id,
filename=filename,
token=HUGGING_FACE_API_KEY
)
print(downloaded_model_path)
print(downloaded_model_path)