File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 13
13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
+ import importlib .resources
16
17
import json
17
18
import logging
18
19
import textwrap
@@ -476,6 +477,8 @@ def create_lerobot_dataset_card(
476
477
Note: If specified, license must be one of https://huggingface.co/docs/hub/repositories-licenses.
477
478
"""
478
479
card_tags = ["LeRobot" ]
480
+ card_template_path = importlib .resources .path ("lerobot.common.datasets" , "card_template.md" )
481
+
479
482
if tags :
480
483
card_tags += tags
481
484
if dataset_info :
@@ -493,8 +496,9 @@ def create_lerobot_dataset_card(
493
496
}
494
497
],
495
498
)
499
+
496
500
return DatasetCard .from_template (
497
501
card_data = card_data ,
498
- template_path = "./lerobot/common/datasets/card_template.md" ,
502
+ template_path = str ( card_template_path ) ,
499
503
** kwargs ,
500
504
)
You can’t perform that action at this time.
0 commit comments