victan commited on
Commit
959f042
1 Parent(s): 421d473

Upload seamless_communication/__init__.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. seamless_communication/__init__.py +20 -0
seamless_communication/__init__.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the license found in the
5
+ # MIT_LICENSE file in the root directory of this source tree.
6
+
7
+ from pathlib import Path
8
+
9
+ from fairseq2.assets import FileAssetMetadataProvider, asset_store
10
+
11
+ __version__ = "0.1.0"
12
+
13
+
14
+ def _update_asset_store() -> None:
15
+ cards_dir = Path(__file__).parent.joinpath("cards")
16
+
17
+ asset_store.metadata_providers.append(FileAssetMetadataProvider(cards_dir))
18
+
19
+
20
+ _update_asset_store()