solves incorrect spacing in buffer diarization
This commit is contained in:
parent
a153e11fe0
commit
a7db39d999
3 changed files with 4 additions and 9 deletions
|
|
@ -483,7 +483,7 @@ class AudioProcessor:
|
||||||
status=response_status,
|
status=response_status,
|
||||||
lines=lines,
|
lines=lines,
|
||||||
buffer_transcription=buffer_transcription.text.strip(),
|
buffer_transcription=buffer_transcription.text.strip(),
|
||||||
buffer_diarization=buffer_diarization.strip(),
|
buffer_diarization=buffer_diarization,
|
||||||
remaining_time_transcription=state.remaining_time_transcription,
|
remaining_time_transcription=state.remaining_time_transcription,
|
||||||
remaining_time_diarization=state.remaining_time_diarization if self.args.diarization else 0
|
remaining_time_diarization=state.remaining_time_diarization if self.args.diarization else 0
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,9 @@ try:
|
||||||
HAS_MLX_WHISPER = True
|
HAS_MLX_WHISPER = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
if platform.system() == "Darwin" and platform.machine() == "arm64":
|
if platform.system() == "Darwin" and platform.machine() == "arm64":
|
||||||
print(f"""
|
print(f"""{"="*50}
|
||||||
{"="*50}
|
MLX Whisper not found but you are on Apple Silicon. Consider installing mlx-whisper for better performance: pip install mlx-whisper
|
||||||
MLX Whisper not found but you are on Apple Silicon. Consider installing mlx-whisper for better performance: pip install mlx-whisper
|
{"="*50}""")
|
||||||
{"="*50}
|
|
||||||
""")
|
|
||||||
HAS_MLX_WHISPER = False
|
HAS_MLX_WHISPER = False
|
||||||
if HAS_MLX_WHISPER:
|
if HAS_MLX_WHISPER:
|
||||||
HAS_FASTER_WHISPER = False
|
HAS_FASTER_WHISPER = False
|
||||||
|
|
|
||||||
|
|
@ -483,7 +483,6 @@ label {
|
||||||
|
|
||||||
.buffer_diarization {
|
.buffer_diarization {
|
||||||
color: var(--label-dia-text);
|
color: var(--label-dia-text);
|
||||||
margin-left: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.buffer_transcription {
|
.buffer_transcription {
|
||||||
|
|
@ -600,8 +599,6 @@ label {
|
||||||
.label_language {
|
.label_language {
|
||||||
background-color: var(--chip-bg);
|
background-color: var(--chip-bg);
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
margin-top: 5px;
|
|
||||||
height: 18.5px;
|
|
||||||
border-radius: 100px;
|
border-radius: 100px;
|
||||||
padding: 2px 8px;
|
padding: 2px 8px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue