Spaces:
Build error
Build error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,8 @@ from huggingface_hub import hf_hub_download
|
|
| 8 |
from model import image_captioning_model
|
| 9 |
|
| 10 |
# Загрузка файлов
|
| 11 |
-
|
|
|
|
| 12 |
model_path = hf_hub_download(repo_id=repo_id, filename="pytorch_model.bin")
|
| 13 |
config_path = hf_hub_download(repo_id=repo_id, filename="config.json")
|
| 14 |
tokenizer_path = hf_hub_download(repo_id=repo_id, filename="tokenizer.pkl")
|
|
|
|
| 8 |
from model import image_captioning_model
|
| 9 |
|
| 10 |
# Загрузка файлов
|
| 11 |
+
# https://huggingface.co/spaces/Pumponchik/ImageCaption/tree/main
|
| 12 |
+
repo_id = "Pumponchik/ImageCaption"
|
| 13 |
model_path = hf_hub_download(repo_id=repo_id, filename="pytorch_model.bin")
|
| 14 |
config_path = hf_hub_download(repo_id=repo_id, filename="config.json")
|
| 15 |
tokenizer_path = hf_hub_download(repo_id=repo_id, filename="tokenizer.pkl")
|