Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dustalov committed Oct 10, 2024
1 parent ae86d86 commit b6090ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/evalica/gradio/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6090ba

Please sign in to comment.