AfhamAhmed1 commited on
Commit
93964cf
·
verified ·
1 Parent(s): 876cc4a

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. ajrk_2.safetensors +3 -0
  2. upload_model.ipynb +78 -0
ajrk_2.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bd721d26e7af48e44a07c477c9d4b9e4569603566995cd245525a093ae8461f
3
+ size 2132626598
upload_model.ipynb ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "from huggingface_hub import HfApi\n",
10
+ "\n",
11
+ "# Replace with your credentials\n",
12
+ "api = HfApi()\n",
13
+ "\n"
14
+ ]
15
+ },
16
+ {
17
+ "cell_type": "code",
18
+ "execution_count": 14,
19
+ "metadata": {},
20
+ "outputs": [
21
+ {
22
+ "data": {
23
+ "application/vnd.jupyter.widget-view+json": {
24
+ "model_id": "bd01e6072d3b4ac6bb3abb5ba501e42a",
25
+ "version_major": 2,
26
+ "version_minor": 0
27
+ },
28
+ "text/plain": [
29
+ "pytorch_model.bin: 0%| | 0.00/2.78G [00:00<?, ?B/s]"
30
+ ]
31
+ },
32
+ "metadata": {},
33
+ "output_type": "display_data"
34
+ },
35
+ {
36
+ "data": {
37
+ "text/plain": [
38
+ "CommitInfo(commit_url='https://huggingface.co/AfhamAhmed1/fabric-designs/commit/120752142bc931493094e6aa4ff25e1515977842', commit_message='Upload folder using huggingface_hub', commit_description='', oid='120752142bc931493094e6aa4ff25e1515977842', pr_url=None, pr_revision=None, pr_num=None)"
39
+ ]
40
+ },
41
+ "execution_count": 14,
42
+ "metadata": {},
43
+ "output_type": "execute_result"
44
+ }
45
+ ],
46
+ "source": [
47
+ "# Assuming you've already logged in with api.login()\n",
48
+ "\n",
49
+ "folder_path = ''\n",
50
+ "repo_name = \"AfhamAhmed1/ajrak-design\" # Replace with your actual username/repo\n",
51
+ "\n",
52
+ "# Upload the folder to the root of the specified repository (no subfolder)\n",
53
+ "api.upload_folder(repo_id=repo_name, folder_path=folder_path, path_in_repo=\"\", repo_type=\"model\")\n"
54
+ ]
55
+ }
56
+ ],
57
+ "metadata": {
58
+ "kernelspec": {
59
+ "display_name": "Python 3",
60
+ "language": "python",
61
+ "name": "python3"
62
+ },
63
+ "language_info": {
64
+ "codemirror_mode": {
65
+ "name": "ipython",
66
+ "version": 3
67
+ },
68
+ "file_extension": ".py",
69
+ "mimetype": "text/x-python",
70
+ "name": "python",
71
+ "nbconvert_exporter": "python",
72
+ "pygments_lexer": "ipython3",
73
+ "version": "3.11.5"
74
+ }
75
+ },
76
+ "nbformat": 4,
77
+ "nbformat_minor": 2
78
+ }