Sfoglia il codice sorgente

Disable gradio analytics globally

oobabooga 2 anni fa
parent
commit
cf2c4e740b
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      server.py

+ 4 - 0
server.py

@@ -1,3 +1,7 @@
+import os
+
+os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
+
 import io
 import json
 import re