浏览代码

Disable gradio analytics globally

oobabooga 2 年之前
父节点
当前提交
cf2c4e740b
共有 1 个文件被更改,包括 4 次插入0 次删除
  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