Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -75,10 +75,29 @@ You can collaborate with your organization, upload and showcase your own models
|
|
75 |
!pip install huggingface-hub
|
76 |
!huggingface-cli login
|
77 |
from huggingface_hub.keras_mixin import push_to_hub_keras
|
78 |
-
push_to_hub_keras(model = model, repo_url = "https://huggingface.co/your-username/
|
79 |
</pre>
|
80 |
</div>
|
81 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
<div class="lg:col-span-1">
|
83 |
<p class="mb-4">
|
84 |
If you'd like to upload 🤗Transformers based Keras checkpoints and let us host your metrics interactively in the repo in with TensorBoard, use <a
|
|
|
75 |
!pip install huggingface-hub
|
76 |
!huggingface-cli login
|
77 |
from huggingface_hub.keras_mixin import push_to_hub_keras
|
78 |
+
push_to_hub_keras(model = model, repo_url = "https://huggingface.co/your-username/your-awesome-model")
|
79 |
</pre>
|
80 |
</div>
|
81 |
</p>
|
82 |
+
<div class="lg:col-span-3">
|
83 |
+
<p class="mb-4">
|
84 |
+
To load Keras models from the 🤗Hub, use <a
|
85 |
+
href="https://github.com/huggingface/huggingface_hub/blob/d3ba39a69bb5570eb7f31ce76a19b53fdc89728b/src/huggingface_hub/keras_mixin.py#L56"
|
86 |
+
>from_pretrained_keras</a
|
87 |
+
>
|
88 |
+
function.
|
89 |
+
</p>
|
90 |
+
<div
|
91 |
+
class="p-4 bg-gradient-to-b from-gray-50-to-white border border-gray-100 rounded-lg relative mb-4"
|
92 |
+
>
|
93 |
+
<pre
|
94 |
+
class="break-words leading-1 whitespace-pre-line text-xs md:text-sm text-gray-800">
|
95 |
+
!pip install huggingface-hub
|
96 |
+
!huggingface-cli login
|
97 |
+
from huggingface_hub.keras_mixin import from_pretrained_keras
|
98 |
+
from_pretrained_keras("your-username/your-awesome-model)
|
99 |
+
</pre>
|
100 |
+
</div>
|
101 |
<div class="lg:col-span-1">
|
102 |
<p class="mb-4">
|
103 |
If you'd like to upload 🤗Transformers based Keras checkpoints and let us host your metrics interactively in the repo in with TensorBoard, use <a
|