Skip to content

Commit

Permalink
Fix Ruff issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ibevers committed May 28, 2024
1 parent 047674a commit 320b519
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
7 changes: 3 additions & 4 deletions scripts/pyannote_31_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
PolyAI/minds14 dataset:
https://huggingface.co/datasets/PolyAI/minds14
"""


import json

from datasets import load_dataset

from senselab.audio.tasks.preprocessing import resample_hf_dataset
from senselab.audio.tasks.pyannote_speaker_diarization_31 import pyannote_31_diarize
from senselab.audio.tasks.pyannote_speaker_diarization_31 import (
pyannote_31_diarize
)
from senselab.utils.tasks.input_output import _from_hf_dataset_to_dict


hf_token = "YOUR HF TOKEN"
dataset = load_dataset("PolyAI/minds14", "en-US", split="train")
dataset = dataset.select(range(4))
Expand Down
2 changes: 1 addition & 1 deletion src/senselab/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""".. include:: ../../README.md""" # noqa: D415
""".. include:: ../../README.md""" # noqa: D415
3 changes: 3 additions & 0 deletions src/senselab/audio/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
This package contains modules and tasks related to audio processing.
"""
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import os
from typing import Any, Dict, List, Tuple

from datasets import Dataset
import torch
from datasets import Dataset
from pyannote.audio import Pipeline
from pyannote.audio.pipelines.utils.hook import ProgressHook
from pyannote.core import Annotation
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion src/senselab/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""This module defines CLI commands for the Senselab application."""
"""This module defines CLI commands for the Senselab application."""

import click

Expand Down

0 comments on commit 320b519

Please sign in to comment.