Fedir Zadniprovskyi 2024-06-03
chore: add vtt and str output examples
@2019d59b51e9286cfc09060f8daf318a12e7e319
faster_whisper_server/config.py
--- faster_whisper_server/config.py
+++ faster_whisper_server/config.py
@@ -15,8 +15,35 @@
     TEXT = "text"
     JSON = "json"
     VERBOSE_JSON = "verbose_json"
-    # VTT = "vtt"
-    # SRT = "srt"
+    # NOTE: While inspecting outputs of these formats with `curl`, I noticed there's one or two "\n" inserted at the end of the response.
+
+    # VTT = "vtt" # TODO
+    # 1
+    # 00:00:00,000 --> 00:00:09,220
+    # In his video on Large Language Models or LLMs, OpenAI co-founder and YouTuber Andrej Karpathy
+    #
+    # 2
+    # 00:00:09,220 --> 00:00:12,280
+    # likened LLMs to operating systems.
+    #
+    # 3
+    # 00:00:12,280 --> 00:00:13,280
+    # Karpathy said,
+    #
+    # SRT = "srt" # TODO
+    # WEBVTT
+    #
+    # 00:00:00.000 --> 00:00:09.220
+    # In his video on Large Language Models or LLMs, OpenAI co-founder and YouTuber Andrej Karpathy
+    #
+    # 00:00:09.220 --> 00:00:12.280
+    # likened LLMs to operating systems.
+    #
+    # 00:00:12.280 --> 00:00:13.280
+    # Karpathy said,
+    #
+    # 00:00:13.280 --> 00:00:19.799
+    # I see a lot of equivalence between this new LLM OS and operating systems of today.
 
 
 # https://huggingface.co/Systran
@@ -46,7 +73,6 @@
 
 
 # https://github.com/OpenNMT/CTranslate2/blob/master/docs/quantization.md
-# NOTE: `Precision` might be a better name
 class Quantization(enum.StrEnum):
     INT8 = "int8"
     INT8_FLOAT16 = "int8_float16"
Add a comment
List