Spaces:
Build error
Build error
Download Fixes/tensor-launch.py from MadeWithAI/MWAI-RVC_HFv2: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/spaces/MadeWithAI/MWAI-RVC_HFv2/resolve/a1bbd039f42e009c03c8e8ba102f5f53d15d8970/Fixes/tensor-launch.py
- Command line
-
hf download hf://spaces/MadeWithAI/MWAI-RVC_HFv2@a1bbd039f42e009c03c8e8ba102f5f53d15d8970/Fixes/tensor-launch.py
-
curl -L -o tensor-launch.py https://huggingface.co/spaces/MadeWithAI/MWAI-RVC_HFv2/resolve/a1bbd039f42e009c03c8e8ba102f5f53d15d8970/Fixes/tensor-launch.py
347 Bytes
| import threading | |
| import time | |
| from tensorboard import program | |
| import os | |
| log_path = "logs" | |
| if __name__ == "__main__": | |
| tb = program.TensorBoard() | |
| tb.configure(argv=[None, '--logdir', log_path]) | |
| url = tb.launch() | |
| print(f'Tensorboard can be accessed at: {url}') | |
| while True: | |
| time.sleep(600) # Keep the main thread running |