update the token input
Browse files- .gitignore +1 -0
- save_audioMAE.ipynb +15 -3
.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1 |
__pycache__/
|
|
|
|
1 |
__pycache__/
|
2 |
+
token.txt
|
save_audioMAE.ipynb
CHANGED
@@ -11,9 +11,18 @@
|
|
11 |
},
|
12 |
{
|
13 |
"cell_type": "code",
|
14 |
-
"execution_count":
|
15 |
"metadata": {},
|
16 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
"source": [
|
18 |
"import timm\n",
|
19 |
"from transformers import AutoConfig, AutoModel\n",
|
@@ -112,7 +121,10 @@
|
|
112 |
}
|
113 |
],
|
114 |
"source": [
|
115 |
-
"
|
|
|
|
|
|
|
116 |
]
|
117 |
},
|
118 |
{
|
|
|
11 |
},
|
12 |
{
|
13 |
"cell_type": "code",
|
14 |
+
"execution_count": 1,
|
15 |
"metadata": {},
|
16 |
+
"outputs": [
|
17 |
+
{
|
18 |
+
"name": "stderr",
|
19 |
+
"output_type": "stream",
|
20 |
+
"text": [
|
21 |
+
"C:\\Users\\dslee\\AppData\\Roaming\\Python\\Python38\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
22 |
+
" from .autonotebook import tqdm as notebook_tqdm\n"
|
23 |
+
]
|
24 |
+
}
|
25 |
+
],
|
26 |
"source": [
|
27 |
"import timm\n",
|
28 |
"from transformers import AutoConfig, AutoModel\n",
|
|
|
121 |
}
|
122 |
],
|
123 |
"source": [
|
124 |
+
"with open('token.txt', 'r') as file:\n",
|
125 |
+
" token = file.read().strip()\n",
|
126 |
+
"\n",
|
127 |
+
"model.push_to_hub('hance-ai/audiomae', token=token) # put your token"
|
128 |
]
|
129 |
},
|
130 |
{
|