tbsync.operate.upload¶
upload_log_directory¶
-
tbsync.operate.upload.
upload_log_directory
(repository: str, logdir, name: Optional[str] = None, anonymous: bool = False)[source]¶ - Overview:
Uploads a local TensorBoard log directory to the specified Hugging Face space repository for easy access and viewing.
- Parameters:
repository – The Hugging Face space repository to upload the log directory to.
logdir – The path to the local TensorBoard log directory.
name – The name for the uploaded log directory. Defaults to
None
, which means directory name oflogdir
will be used as name.anonymous – Indicates whether the upload should be anonymous or not. Defaults to
False
. When this option is enabled, the part of the log file name that contains information about the local machine will be encrypted, ensuring that the local runtime environment information is not exposed.