rexlapix commited on
Commit
f83fb34
·
verified ·
1 Parent(s): 4ead280

Delete up.ipynb

Browse files
Files changed (1) hide show
  1. up.ipynb +0 -244
up.ipynb DELETED
@@ -1,244 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 1,
6
- "id": "95f4303e-204f-477a-9b7e-ba477d035b1b",
7
- "metadata": {},
8
- "outputs": [
9
- {
10
- "name": "stdout",
11
- "output_type": "stream",
12
- "text": [
13
- "Requirement already satisfied: huggingface_hub in /usr/local/lib/python3.10/dist-packages (0.25.1)\n",
14
- "Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from huggingface_hub) (3.13.1)\n",
15
- "Requirement already satisfied: fsspec>=2023.5.0 in /usr/local/lib/python3.10/dist-packages (from huggingface_hub) (2024.2.0)\n",
16
- "Requirement already satisfied: packaging>=20.9 in /usr/local/lib/python3.10/dist-packages (from huggingface_hub) (23.2)\n",
17
- "Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.10/dist-packages (from huggingface_hub) (6.0.1)\n",
18
- "Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from huggingface_hub) (2.31.0)\n",
19
- "Requirement already satisfied: tqdm>=4.42.1 in /usr/local/lib/python3.10/dist-packages (from huggingface_hub) (4.66.5)\n",
20
- "Requirement already satisfied: typing-extensions>=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface_hub) (4.9.0)\n",
21
- "Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface_hub) (3.3.2)\n",
22
- "Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface_hub) (3.6)\n",
23
- "Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface_hub) (2.2.0)\n",
24
- "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->huggingface_hub) (2024.2.2)\n",
25
- "\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n",
26
- "\u001b[0m\n",
27
- "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.0\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.2\u001b[0m\n",
28
- "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpython -m pip install --upgrade pip\u001b[0m\n"
29
- ]
30
- }
31
- ],
32
- "source": [
33
- "!pip install huggingface_hub"
34
- ]
35
- },
36
- {
37
- "cell_type": "code",
38
- "execution_count": null,
39
- "id": "3d22d9d1-43cd-47d3-b2b8-a01073769bdd",
40
- "metadata": {},
41
- "outputs": [
42
- {
43
- "data": {
44
- "application/vnd.jupyter.widget-view+json": {
45
- "model_id": "7c609b6014044751b43ac0e25731e184",
46
- "version_major": 2,
47
- "version_minor": 0
48
- },
49
- "text/plain": [
50
- "4x_NMKD-Siax_200k.pth: 0%| | 0.00/67.0M [00:00<?, ?B/s]"
51
- ]
52
- },
53
- "metadata": {},
54
- "output_type": "display_data"
55
- },
56
- {
57
- "data": {
58
- "application/vnd.jupyter.widget-view+json": {
59
- "model_id": "25f9294f1c4e4a598c47e70dcecca079",
60
- "version_major": 2,
61
- "version_minor": 0
62
- },
63
- "text/plain": [
64
- "4x_NMKD-Superscale-SP_178000_G.pth: 0%| | 0.00/67.0M [00:00<?, ?B/s]"
65
- ]
66
- },
67
- "metadata": {},
68
- "output_type": "display_data"
69
- },
70
- {
71
- "data": {
72
- "application/vnd.jupyter.widget-view+json": {
73
- "model_id": "503751c262f2456a87dfe8a2722e1b49",
74
- "version_major": 2,
75
- "version_minor": 0
76
- },
77
- "text/plain": [
78
- "4x-UltraSharp.pth: 0%| | 0.00/67.0M [00:00<?, ?B/s]"
79
- ]
80
- },
81
- "metadata": {},
82
- "output_type": "display_data"
83
- },
84
- {
85
- "data": {
86
- "application/vnd.jupyter.widget-view+json": {
87
- "model_id": "0ed6a74df8194739944f68cd0b7ef73b",
88
- "version_major": 2,
89
- "version_minor": 0
90
- },
91
- "text/plain": [
92
- "clip_l.safetensors: 0%| | 0.00/246M [00:00<?, ?B/s]"
93
- ]
94
- },
95
- "metadata": {},
96
- "output_type": "display_data"
97
- },
98
- {
99
- "data": {
100
- "application/vnd.jupyter.widget-view+json": {
101
- "model_id": "9e5a2ca789d14c0da6aecf26f2e79609",
102
- "version_major": 2,
103
- "version_minor": 0
104
- },
105
- "text/plain": [
106
- "t5xxl_fp8_e4m3fn.safetensors: 0%| | 0.00/4.89G [00:00<?, ?B/s]"
107
- ]
108
- },
109
- "metadata": {},
110
- "output_type": "display_data"
111
- },
112
- {
113
- "data": {
114
- "application/vnd.jupyter.widget-view+json": {
115
- "model_id": "62e491a1127d4de3953918227ee9f2f7",
116
- "version_major": 2,
117
- "version_minor": 0
118
- },
119
- "text/plain": [
120
- "acorn-is-spinning-flux1dev.safetensors: 0%| | 0.00/11.9G [00:00<?, ?B/s]"
121
- ]
122
- },
123
- "metadata": {},
124
- "output_type": "display_data"
125
- },
126
- {
127
- "data": {
128
- "application/vnd.jupyter.widget-view+json": {
129
- "model_id": "67a9303e05584962b6946ac7ab8dace3",
130
- "version_major": 2,
131
- "version_minor": 0
132
- },
133
- "text/plain": [
134
- "ae.safetensors: 0%| | 0.00/335M [00:00<?, ?B/s]"
135
- ]
136
- },
137
- "metadata": {},
138
- "output_type": "display_data"
139
- },
140
- {
141
- "data": {
142
- "application/vnd.jupyter.widget-view+json": {
143
- "model_id": "55e59cd6528a4243b6c7d0bd52361adf",
144
- "version_major": 2,
145
- "version_minor": 0
146
- },
147
- "text/plain": [
148
- "ol1v1a.safetensors: 0%| | 0.00/172M [00:00<?, ?B/s]"
149
- ]
150
- },
151
- "metadata": {},
152
- "output_type": "display_data"
153
- },
154
- {
155
- "data": {
156
- "application/vnd.jupyter.widget-view+json": {
157
- "model_id": "fa29ad73f64e43bd9e87029e20ac96c1",
158
- "version_major": 2,
159
- "version_minor": 0
160
- },
161
- "text/plain": [
162
- "em1ly-lora.safetensors: 0%| | 0.00/172M [00:00<?, ?B/s]"
163
- ]
164
- },
165
- "metadata": {},
166
- "output_type": "display_data"
167
- },
168
- {
169
- "data": {
170
- "application/vnd.jupyter.widget-view+json": {
171
- "model_id": "b53400ccd38b435eaa018d001dd0b67d",
172
- "version_major": 2,
173
- "version_minor": 0
174
- },
175
- "text/plain": [
176
- "luna-flux-lora.safetensors: 0%| | 0.00/687M [00:00<?, ?B/s]"
177
- ]
178
- },
179
- "metadata": {},
180
- "output_type": "display_data"
181
- }
182
- ],
183
- "source": [
184
- "from huggingface_hub import HfApi\n",
185
- "import os\n",
186
- "\n",
187
- "# Initialize the API\n",
188
- "api = HfApi()\n",
189
- "\n",
190
- "# Define the repository name\n",
191
- "repo_id = \"rexlapix/my-acorn-flux\" # Your private repository\n",
192
- "\n",
193
- "# Specify the path to your workspace\n",
194
- "folder_path = \"/workspace\" # Adjust this if necessary\n",
195
- "\n",
196
- "# List all files in the folder_path, filtering out directories\n",
197
- "files = [\n",
198
- " os.path.join(folder_path, f) for f in os.listdir(folder_path)\n",
199
- " if os.path.isfile(os.path.join(folder_path, f)) # Ensure it's a file\n",
200
- "]\n",
201
- "\n",
202
- "# Upload each file individually\n",
203
- "for file_path in files:\n",
204
- " api.upload_file(\n",
205
- " path_or_fileobj=file_path,\n",
206
- " path_in_repo=os.path.basename(file_path),\n",
207
- " repo_id=repo_id,\n",
208
- " commit_message=f\"Upload {os.path.basename(file_path)} from workspace\"\n",
209
- " )\n",
210
- "\n",
211
- "print(f\"Files uploaded to {repo_id} successfully!\")\n"
212
- ]
213
- },
214
- {
215
- "cell_type": "code",
216
- "execution_count": null,
217
- "id": "0e73779d-47b9-4251-a984-964c552e2c9e",
218
- "metadata": {},
219
- "outputs": [],
220
- "source": []
221
- }
222
- ],
223
- "metadata": {
224
- "kernelspec": {
225
- "display_name": "Python 3 (ipykernel)",
226
- "language": "python",
227
- "name": "python3"
228
- },
229
- "language_info": {
230
- "codemirror_mode": {
231
- "name": "ipython",
232
- "version": 3
233
- },
234
- "file_extension": ".py",
235
- "mimetype": "text/x-python",
236
- "name": "python",
237
- "nbconvert_exporter": "python",
238
- "pygments_lexer": "ipython3",
239
- "version": "3.10.12"
240
- }
241
- },
242
- "nbformat": 4,
243
- "nbformat_minor": 5
244
- }