Spaces:
Runtime error
Runtime error
Update src
Browse files
src
CHANGED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from dataclasses import dataclass
|
2 |
+
from typing import Optional, Tuple
|
3 |
+
import torch
|
4 |
+
from transformers.file_utils import ModelOutput
|
5 |
+
|
6 |
+
|
7 |
+
@dataclass
|
8 |
+
class SpeechClassifierOutput(ModelOutput):
|
9 |
+
loss: Optional[torch.FloatTensor] = None
|
10 |
+
logits: torch.FloatTensor = None
|
11 |
+
hidden_states: Optional[Tuple[torch.FloatTensor]] = None
|
12 |
+
attentions: Optional[Tuple[torch.FloatTensor]] = None
|