volodymyrs
commited on
Commit
•
6b980c5
1
Parent(s):
ab80cb1
Upload folder using huggingface_hub
Browse files- README.md +17 -0
- upload_file.py +9 -0
README.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
# Example metadata to be added to a model card.
|
3 |
+
# Full model card template at https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md
|
4 |
+
language:
|
5 |
+
- fr
|
6 |
+
- en
|
7 |
license: apache-2.0
|
8 |
+
library_name: allennlp
|
9 |
+
tags:
|
10 |
+
- audio
|
11 |
+
- automatic-speech-recognition
|
12 |
+
- speech
|
13 |
+
- allennlp
|
14 |
---
|
15 |
+
|
16 |
+
This markdown file contains the spec for the modelcard metadata regarding evaluation parameters. When present, and only then, 'model-index', 'datasets' and 'license' contents will be verified when git pushing changes to your README.md file.
|
17 |
+
Valid license identifiers can be found in [our docs](https://huggingface.co/docs/hub/repositories-licenses).
|
18 |
+
|
19 |
+
For the full model card template, see: [https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md).
|
20 |
+
|
upload_file.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from huggingface_hub import HfApi
|
2 |
+
api = HfApi()
|
3 |
+
api.upload_file(
|
4 |
+
path_or_fileobj="README.md",
|
5 |
+
path_in_repo="README.md",
|
6 |
+
repo_id="REPO_ID",
|
7 |
+
revision="revision111",
|
8 |
+
repo_type="model"
|
9 |
+
)
|