multimodalart HF Staff commited on
Commit
60ebff1
·
verified ·
1 Parent(s): 742bff5

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -7,15 +7,18 @@ import torch
7
  import gradio as gr
8
 
9
  INFO = (
10
- f"python={sys.version.split()[0]} ({sys.version.split('(')[0].strip()})\n"
11
- f"torch={torch.__version__}\n"
12
- f"torch.version.cuda={torch.version.cuda}\n"
13
- f"cxx11_abi={torch._C._GLIBCXX_USE_CXX11_ABI}\n"
14
- f"cuda_available={torch.cuda.is_available()}\n"
15
- f"TORCH_CUDA_ARCH_LIST={os.environ.get('TORCH_CUDA_ARCH_LIST')!r}\n"
16
- f"machine={os.uname().machine}\n"
17
  )
18
 
 
 
 
 
19
 
20
  @spaces.GPU(duration=60)
21
  def probe():
 
7
  import gradio as gr
8
 
9
  INFO = (
10
+ f"PROBE_PYTHON={sys.version.split()[0]}\n"
11
+ f"PROBE_TORCH={torch.__version__}\n"
12
+ f"PROBE_CUDA={torch.version.cuda}\n"
13
+ f"PROBE_CXX11ABI={torch._C._GLIBCXX_USE_CXX11_ABI}\n"
14
+ f"PROBE_TORCH_CUDA_ARCH_LIST={os.environ.get('TORCH_CUDA_ARCH_LIST')!r}\n"
15
+ f"PROBE_MACHINE={os.uname().machine}\n"
 
16
  )
17
 
18
+ print("===PROBE-START===", flush=True)
19
+ print(INFO, flush=True)
20
+ print("===PROBE-END===", flush=True)
21
+
22
 
23
  @spaces.GPU(duration=60)
24
  def probe():