ACCA225 commited on
Commit
592b55e
1 Parent(s): ee18c52

Update app1.py

Browse files
Files changed (1) hide show
  1. app1.py +2 -1
app1.py CHANGED
@@ -63,7 +63,7 @@ wandb.init(project="gpu-temperature-monitor")
63
  import os
64
  import threading
65
  import wandb
66
-
67
  def wandb():
68
  # Assuming you have initialized WandB before this function call
69
  # ...
@@ -76,6 +76,7 @@ def wandb():
76
  gpu_usage = int(os.popen(gpu_usage_command).read().strip())
77
 
78
  wandb.log({"GPU 温度": gpu_temperature, "GPU 使用率": gpu_usage})
 
79
 
80
  def start():
81
  os.system(f"python launch.py --api --xformers --enable-insecure-extension-access --ui-settings-file /home/xlab-app-center/config.json --ui-config-file /home/xlab-app-center/ui-config.json --gradio-queue --disable-safe-unpickle --ngrok=2Z4gIgLcc0W20vmdmTHTgwlWXdR_5aHNP91mnkn1mFYXUKKEz")
 
63
  import os
64
  import threading
65
  import wandb
66
+ import time
67
  def wandb():
68
  # Assuming you have initialized WandB before this function call
69
  # ...
 
76
  gpu_usage = int(os.popen(gpu_usage_command).read().strip())
77
 
78
  wandb.log({"GPU 温度": gpu_temperature, "GPU 使用率": gpu_usage})
79
+ time.sleep(10)
80
 
81
  def start():
82
  os.system(f"python launch.py --api --xformers --enable-insecure-extension-access --ui-settings-file /home/xlab-app-center/config.json --ui-config-file /home/xlab-app-center/ui-config.json --gradio-queue --disable-safe-unpickle --ngrok=2Z4gIgLcc0W20vmdmTHTgwlWXdR_5aHNP91mnkn1mFYXUKKEz")