Spaces:
Runtime error
Runtime error
Commit
·
58de479
1
Parent(s):
e0cbb58
push to github_repo
Browse files
README.md
CHANGED
@@ -9,15 +9,15 @@ pinned: false
|
|
9 |
|
10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
11 |
|
12 |
-
|
13 |
STEPS:
|
14 |
|
15 |
Start by cloning this repo by using:
|
16 |
|
17 |
-
git clone https://huggingface.co/spaces/
|
18 |
Create your Dockerfile file:
|
19 |
|
20 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
|
|
21 |
# you will also find guides on how best to write your Dockerfile
|
22 |
|
23 |
FROM python:3.9
|
@@ -37,7 +37,7 @@ git add Dockerfile
|
|
37 |
git commit -m "Add application file"
|
38 |
git push
|
39 |
|
40 |
-
|
41 |
Since October 2023 it is not possible to push using simply username and password: we need to generate a token at HuggingFace and perform the push accordingly: https://huggingface.co/blog/password-git-deprecation
|
42 |
|
43 |
If you don’t have any SSH keys on your machine, you can use ssh-keygen to generate a new SSH key pair (public + private keys):
|
@@ -56,17 +56,21 @@ Then, enter a name for this key (for example, “Personal computer”), and copy
|
|
56 |
|
57 |
Click on “Add key”, and voilà! You have added a SSH key to your huggingface.co account.
|
58 |
|
59 |
-
>ssh -T git@hf.co
|
60 |
-
The authenticity of host 'hf.co (...)' can't be established.
|
61 |
-
ED25519 key fingerprint is ...
|
62 |
-
This key is not known by any other names
|
63 |
-
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
|
64 |
-
Warning: Permanently added 'hf.co' (ED25519) to the list of known hosts.
|
65 |
-
Hi
|
66 |
|
67 |
-
>ssh -T git@hf.co
|
68 |
-
Hi ..., welcome to Hugging Face.
|
69 |
|
70 |
git remote set-url origin https://MY_GITHUB_NAME:MY_TOKEN@huggingface.co/spaces/MY_HUGGING_FACE_NAME/Chainlit-docker
|
71 |
|
72 |
-
git pull origin
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
11 |
|
|
|
12 |
STEPS:
|
13 |
|
14 |
Start by cloning this repo by using:
|
15 |
|
16 |
+
git clone https://huggingface.co/spaces/MY_HUGGINGFACE_NAME/Chainlit-docker
|
17 |
Create your Dockerfile file:
|
18 |
|
19 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
20 |
+
|
21 |
# you will also find guides on how best to write your Dockerfile
|
22 |
|
23 |
FROM python:3.9
|
|
|
37 |
git commit -m "Add application file"
|
38 |
git push
|
39 |
|
40 |
+
**\*\*** ATTENTION **\*\***
|
41 |
Since October 2023 it is not possible to push using simply username and password: we need to generate a token at HuggingFace and perform the push accordingly: https://huggingface.co/blog/password-git-deprecation
|
42 |
|
43 |
If you don’t have any SSH keys on your machine, you can use ssh-keygen to generate a new SSH key pair (public + private keys):
|
|
|
56 |
|
57 |
Click on “Add key”, and voilà! You have added a SSH key to your huggingface.co account.
|
58 |
|
59 |
+
> ssh -T git@hf.co
|
60 |
+
> The authenticity of host 'hf.co (...)' can't be established.
|
61 |
+
> ED25519 key fingerprint is ...
|
62 |
+
> This key is not known by any other names
|
63 |
+
> Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
|
64 |
+
> Warning: Permanently added 'hf.co' (ED25519) to the list of known hosts.
|
65 |
+
> Hi MY_NAME, welcome to Hugging Face.
|
66 |
|
67 |
+
> ssh -T git@hf.co
|
68 |
+
> Hi ..., welcome to Hugging Face.
|
69 |
|
70 |
git remote set-url origin https://MY_GITHUB_NAME:MY_TOKEN@huggingface.co/spaces/MY_HUGGING_FACE_NAME/Chainlit-docker
|
71 |
|
72 |
+
git pull origin
|
73 |
+
|
74 |
+
Once pulled, the target: https://huggingface.co/spaces/MY_HUGGINGFACE_NAME/Chainlit-docker?logs=container will starting loading the application (we will see the logs) and in the end we will see it running at: https://huggingface.co/spaces/MY_HUGGINGFACE_NAME/Chainlit-docker
|
75 |
+
|
76 |
+
Let's now push the code into the Github repo:
|