Spaces:
Running
Running
jhj0517
commited on
Commit
·
ffaa4d2
1
Parent(s):
bb0ce27
Add `as_list`
Browse files
modules/whisper/whisper_parameter.py
CHANGED
@@ -357,3 +357,13 @@ class WhisperValues:
|
|
357 |
},
|
358 |
}
|
359 |
return data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
},
|
358 |
}
|
359 |
return data
|
360 |
+
|
361 |
+
def as_list(self) -> list:
|
362 |
+
"""
|
363 |
+
Converts the data class attributes into a list
|
364 |
+
|
365 |
+
Returns
|
366 |
+
----------
|
367 |
+
A list of Whisper parameters
|
368 |
+
"""
|
369 |
+
return [getattr(self, f.name) for f in fields(self)]
|