diff --git a/python/evalica/gradio/__main__.py b/python/evalica/gradio/__main__.py index a0eecfe..cd366ea 100755 --- a/python/evalica/gradio/__main__.py +++ b/python/evalica/gradio/__main__.py @@ -30,8 +30,8 @@ import sys from pathlib import Path - if (pydub_spec := importlib.util.find_spec("pydub")) is not None: - if (pydub_origin := pydub_spec.origin) is not None: + if (pydub_spec := importlib.util.find_spec("pydub")) is not None \ + and (pydub_origin := pydub_spec.origin) is not None: sys.path.append(str(Path(pydub_origin).parent)) import gradio as gr