Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
f4a44b77
Unverified
Commit
f4a44b77
authored
May 29, 2024
by
Tolga Cangöz
Committed by
GitHub
May 29, 2024
Browse files
Simplify `platform_info` assignment in `diffusers-cli env` (#8298)
chore: Simplify `platform_info` assignment
parent
3bc3b48c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
src/diffusers/commands/env.py
src/diffusers/commands/env.py
+1
-5
No files found.
src/diffusers/commands/env.py
View file @
f4a44b77
...
@@ -31,7 +31,6 @@ from ..utils import (
...
@@ -31,7 +31,6 @@ from ..utils import (
is_transformers_available
,
is_transformers_available
,
is_xformers_available
,
is_xformers_available
,
)
)
from
..utils.testing_utils
import
get_python_version
from
.
import
BaseDiffusersCLICommand
from
.
import
BaseDiffusersCLICommand
...
@@ -106,9 +105,6 @@ class EnvironmentCommand(BaseDiffusersCLICommand):
...
@@ -106,9 +105,6 @@ class EnvironmentCommand(BaseDiffusersCLICommand):
xformers_version
=
xformers
.
__version__
xformers_version
=
xformers
.
__version__
if
get_python_version
()
>=
(
3
,
10
):
platform_info
=
f
"
{
platform
.
freedesktop_os_release
().
get
(
'PRETTY_NAME'
,
None
)
}
-
{
platform
.
platform
()
}
"
else
:
platform_info
=
platform
.
platform
()
platform_info
=
platform
.
platform
()
is_notebook_str
=
"Yes"
if
is_notebook
()
else
"No"
is_notebook_str
=
"Yes"
if
is_notebook
()
else
"No"
...
...
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