write srt file only for faster_whisper backend

This commit is contained in:
makaveli10
2024-02-01 14:22:45 +05:30
parent f590446865
commit 08575a03c2
2 changed files with 17 additions and 7 deletions
+4 -2
View File
@@ -407,7 +407,8 @@ class ServeClientTensorRT(ServeClientBase):
json.dumps(
{
"uid": self.client_uid,
"message": self.SERVER_READY
"message": self.SERVER_READY,
"backend": "tensorrt"
}
)
)
@@ -615,7 +616,8 @@ class ServeClientFasterWhisper(ServeClientBase):
json.dumps(
{
"uid": self.client_uid,
"message": self.SERVER_READY
"message": self.SERVER_READY,
"backend": "faster_whisper"
}
)
)