tbsync.operate.init¶
init_tb_space_to_local¶
-
tbsync.operate.init.
init_tb_space_to_local
(repository: str, output_dir: str, title: Optional[str] = None, emoji: Optional[str] = None, licence: str = 'mit', port: int = 6006, python_version: Optional[str] = None, tensorboard_version: Optional[str] = None, from_color: Optional[Literal[red, yellow, green, blue, indigo, purple, pink, gray]] = None, to_color: Optional[Literal[red, yellow, green, blue, indigo, purple, pink, gray]] = None)[source]¶ - Overview:
Creating a project to launch TensorBoard in the HuggingFace space locally
- Parameters:
repository – The Hugging Face space repository to initialize.
output_dir – The directory to save the TensorBoard logs and files.
title – The title of the TensorBoard space. Defaults to
None
, which means capitalized form of repository’s name will be used.emoji – The emoji for the TensorBoard space. Defaults to
None
, which means random emoji logo will be used.licence – The license for the TensorBoard space. Defaults to
mit
.port – The port number to run the TensorBoard server. Defaults to
6006
.python_version – The Python version used for the environment. Defaults to
None
, which means current python version will be used.tensorboard_version – The version of TensorBoard to use. Defaults to
None
, which means no limitation for tensorboard’s version.from_color – The starting color of the space. Defaults to
None
, which means random starting color will be used.to_color – The ending color of the space. Defaults to
None
, which means random ending color will be used.
init_tb_space¶
-
tbsync.operate.init.
init_tb_space
(repository: str, title: Optional[str] = None, emoji: Optional[str] = None, private: bool = False, licence: str = 'mit', port: int = 6006, python_version: Optional[str] = None, tensorboard_version: Optional[str] = None, from_color: Optional[Literal[red, yellow, green, blue, indigo, purple, pink, gray]] = None, to_color: Optional[Literal[red, yellow, green, blue, indigo, purple, pink, gray]] = None)[source]¶ - Overview:
Creating a project to launch TensorBoard, and upload it to the HuggingFace space.
- Parameters:
repository – The Hugging Face space repository to initialize.
title – The title of the TensorBoard space. Defaults to
None
, which means capitalized form of repository’s name will be used.emoji – The emoji for the TensorBoard space. Defaults to
None
, which means random emoji logo will be used.private – Create private space or not. Defaults to
False
.licence – The license for the TensorBoard space. Defaults to
mit
.port – The port number to run the TensorBoard server. Defaults to
6006
.python_version – The Python version used for the environment. Defaults to
None
, which means current python version will be used.tensorboard_version – The version of TensorBoard to use. Defaults to
None
, which means no limitation for tensorboard’s version.from_color – The starting color of the space. Defaults to
None
, which means random starting color will be used.to_color – The ending color of the space. Defaults to
None
, which means random ending color will be used.