Spaces:
Configuration error
Configuration error
Fedir Zadniprovskyi
commited on
Commit
·
27656cd
1
Parent(s):
cf23b08
chore: add vtt and str output examples
Browse files
faster_whisper_server/config.py
CHANGED
@@ -15,8 +15,35 @@ class ResponseFormat(enum.StrEnum):
|
|
15 |
TEXT = "text"
|
16 |
JSON = "json"
|
17 |
VERBOSE_JSON = "verbose_json"
|
18 |
-
#
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
|
22 |
# https://huggingface.co/Systran
|
@@ -46,7 +73,6 @@ class Device(enum.StrEnum):
|
|
46 |
|
47 |
|
48 |
# https://github.com/OpenNMT/CTranslate2/blob/master/docs/quantization.md
|
49 |
-
# NOTE: `Precision` might be a better name
|
50 |
class Quantization(enum.StrEnum):
|
51 |
INT8 = "int8"
|
52 |
INT8_FLOAT16 = "int8_float16"
|
|
|
15 |
TEXT = "text"
|
16 |
JSON = "json"
|
17 |
VERBOSE_JSON = "verbose_json"
|
18 |
+
# NOTE: While inspecting outputs of these formats with `curl`, I noticed there's one or two "\n" inserted at the end of the response.
|
19 |
+
|
20 |
+
# VTT = "vtt" # TODO
|
21 |
+
# 1
|
22 |
+
# 00:00:00,000 --> 00:00:09,220
|
23 |
+
# In his video on Large Language Models or LLMs, OpenAI co-founder and YouTuber Andrej Karpathy
|
24 |
+
#
|
25 |
+
# 2
|
26 |
+
# 00:00:09,220 --> 00:00:12,280
|
27 |
+
# likened LLMs to operating systems.
|
28 |
+
#
|
29 |
+
# 3
|
30 |
+
# 00:00:12,280 --> 00:00:13,280
|
31 |
+
# Karpathy said,
|
32 |
+
#
|
33 |
+
# SRT = "srt" # TODO
|
34 |
+
# WEBVTT
|
35 |
+
#
|
36 |
+
# 00:00:00.000 --> 00:00:09.220
|
37 |
+
# In his video on Large Language Models or LLMs, OpenAI co-founder and YouTuber Andrej Karpathy
|
38 |
+
#
|
39 |
+
# 00:00:09.220 --> 00:00:12.280
|
40 |
+
# likened LLMs to operating systems.
|
41 |
+
#
|
42 |
+
# 00:00:12.280 --> 00:00:13.280
|
43 |
+
# Karpathy said,
|
44 |
+
#
|
45 |
+
# 00:00:13.280 --> 00:00:19.799
|
46 |
+
# I see a lot of equivalence between this new LLM OS and operating systems of today.
|
47 |
|
48 |
|
49 |
# https://huggingface.co/Systran
|
|
|
73 |
|
74 |
|
75 |
# https://github.com/OpenNMT/CTranslate2/blob/master/docs/quantization.md
|
|
|
76 |
class Quantization(enum.StrEnum):
|
77 |
INT8 = "int8"
|
78 |
INT8_FLOAT16 = "int8_float16"
|