Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
9805f35c
Commit
9805f35c
authored
Jan 04, 2024
by
Aarni Koskela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure GRADIO_ANALYTICS_ENABLED is set early enough
parent
f903b4dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
modules/initialize.py
modules/initialize.py
+2
-0
modules/launch_utils.py
modules/launch_utils.py
+1
-2
No files found.
modules/initialize.py
View file @
9805f35c
import
importlib
import
importlib
import
logging
import
logging
import
os
import
sys
import
sys
import
warnings
import
warnings
from
threading
import
Thread
from
threading
import
Thread
...
@@ -18,6 +19,7 @@ def imports():
...
@@ -18,6 +19,7 @@ def imports():
warnings
.
filterwarnings
(
action
=
"ignore"
,
category
=
DeprecationWarning
,
module
=
"pytorch_lightning"
)
warnings
.
filterwarnings
(
action
=
"ignore"
,
category
=
DeprecationWarning
,
module
=
"pytorch_lightning"
)
warnings
.
filterwarnings
(
action
=
"ignore"
,
category
=
UserWarning
,
module
=
"torchvision"
)
warnings
.
filterwarnings
(
action
=
"ignore"
,
category
=
UserWarning
,
module
=
"torchvision"
)
os
.
environ
.
setdefault
(
'GRADIO_ANALYTICS_ENABLED'
,
'False'
)
import
gradio
# noqa: F401
import
gradio
# noqa: F401
startup_timer
.
record
(
"import gradio"
)
startup_timer
.
record
(
"import gradio"
)
...
...
modules/launch_utils.py
View file @
9805f35c
...
@@ -27,8 +27,7 @@ dir_repos = "repositories"
...
@@ -27,8 +27,7 @@ dir_repos = "repositories"
# Whether to default to printing command output
# Whether to default to printing command output
default_command_live
=
(
os
.
environ
.
get
(
'WEBUI_LAUNCH_LIVE_OUTPUT'
)
==
"1"
)
default_command_live
=
(
os
.
environ
.
get
(
'WEBUI_LAUNCH_LIVE_OUTPUT'
)
==
"1"
)
if
'GRADIO_ANALYTICS_ENABLED'
not
in
os
.
environ
:
os
.
environ
.
setdefault
(
'GRADIO_ANALYTICS_ENABLED'
,
'False'
)
os
.
environ
[
'GRADIO_ANALYTICS_ENABLED'
]
=
'False'
def
check_python_version
():
def
check_python_version
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment