SushantGautam commited on
Commit
c40b1ac
·
1 Parent(s): 2b57175

Enhance logging in gradio interface by adding system information and platform details

Browse files
Files changed (1) hide show
  1. gradio_interface.py +10 -1
gradio_interface.py CHANGED
@@ -9,9 +9,18 @@ import os
9
  import glob
10
  from pathlib import Path
11
  from huggingface_hub import whoami
12
- print("Account token used to connect to HuggingFace: ", whoami()['name'])
 
13
  print(subprocess.check_output(
14
  [sys.executable, "-m", "pip", "list"]).decode("utf-8"))
 
 
 
 
 
 
 
 
15
 
16
  SUBMISSION_REPO = "SimulaMet/medvqa-submissions"
17
  hub_path = None
 
9
  import glob
10
  from pathlib import Path
11
  from huggingface_hub import whoami
12
+ import platform
13
+
14
  print(subprocess.check_output(
15
  [sys.executable, "-m", "pip", "list"]).decode("utf-8"))
16
+ print({
17
+ "python": platform.python_version(),
18
+ "os": platform.system(),
19
+ "platform": platform.platform(),
20
+ "arch": platform.machine()
21
+ })
22
+ print("Account token used to connect to HuggingFace: ", whoami()['name'])
23
+
24
 
25
  SUBMISSION_REPO = "SimulaMet/medvqa-submissions"
26
  hub_path = None