LPX55 commited on
Commit
e9767b7
·
1 Parent(s): c00fccb

remove: telemetry

Browse files
Files changed (1) hide show
  1. app_v4.py +5 -1
app_v4.py CHANGED
@@ -18,10 +18,14 @@ from debug import log_params, scheduler, save_image
18
  from huggingface_hub.utils._runtime import dump_environment_info
19
  import logging
20
 
 
 
 
 
21
  logging.basicConfig(level=logging.DEBUG)
22
  logger = logging.getLogger(__name__)
 
23
 
24
- # Ensure device is set
25
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
26
  MAX_SEED = 1000000
27
 
 
18
  from huggingface_hub.utils._runtime import dump_environment_info
19
  import logging
20
 
21
+ #############################
22
+ os.environ('GRADIO_ANALYTICS_ENABLED', 'False')
23
+ os.environ('HF_HUB_DISABLE_TELEMETRY', 1)
24
+
25
  logging.basicConfig(level=logging.DEBUG)
26
  logger = logging.getLogger(__name__)
27
+ #############################
28
 
 
29
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
30
  MAX_SEED = 1000000
31