File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3131 is_transformers_available ,
3232 is_xformers_available ,
3333)
34+ from ..utils .testing_utils import get_python_version
3435from . import BaseDiffusersCLICommand
3536
3637
@@ -105,6 +106,11 @@ def run(self) -> dict:
105106
106107 xformers_version = xformers .__version__
107108
109+ if get_python_version () >= (3 , 10 ):
110+ platform_info = f"{ platform .freedesktop_os_release ().get ('PRETTY_NAME' , None )} - { platform .platform ()} "
111+ else :
112+ platform_info = platform .platform ()
113+
108114 is_notebook_str = "Yes" if is_notebook () else "No"
109115
110116 is_google_colab_str = "Yes" if is_google_colab () else "No"
@@ -152,7 +158,7 @@ def run(self) -> dict:
152158
153159 info = {
154160 "🤗 Diffusers version" : version ,
155- "Platform" : f" { platform . freedesktop_os_release (). get ( 'PRETTY_NAME' , None ) } - { platform . platform () } " ,
161+ "Platform" : platform_info ,
156162 "Running on a notebook?" : is_notebook_str ,
157163 "Running on Google Colab?" : is_google_colab_str ,
158164 "Python version" : platform .python_version (),
You can’t perform that action at this time.
0 commit comments