Spaces:
Running
on
Zero
Running
on
Zero
File size: 347 Bytes
7bc29af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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 |