Spaces:
Runtime error
Runtime error
#imported from https://github.com/m3hrdadfi/soxan to implement Wav2Vec2 for speech classification | |
from dataclasses import dataclass | |
from typing import Optional, Tuple | |
import torch | |
from transformers.file_utils import ModelOutput | |
class SpeechClassifierOutput(ModelOutput): | |
loss: Optional[torch.FloatTensor] = None | |
logits: torch.FloatTensor = None | |
hidden_states: Optional[Tuple[torch.FloatTensor]] = None | |
attentions: Optional[Tuple[torch.FloatTensor]] = None | |