Spaces:
Sleeping
Sleeping
seawolf2357
commited on
Commit
โข
1e66c97
1
Parent(s):
5829735
initial commit
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import pytube as pt
|
|
5 |
from transformers import pipeline
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
-
MODEL_NAME = "openai/whisper-small"
|
9 |
lang = "en"
|
10 |
|
11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
@@ -67,12 +67,7 @@ mf_transcribe = gr.Interface(
|
|
67 |
outputs="text",
|
68 |
layout="horizontal",
|
69 |
theme="huggingface",
|
70 |
-
title="
|
71 |
-
description=(
|
72 |
-
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
|
73 |
-
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and ๐ค Transformers to transcribe audio files"
|
74 |
-
" of arbitrary length."
|
75 |
-
),
|
76 |
allow_flagging="never",
|
77 |
)
|
78 |
|
@@ -82,16 +77,11 @@ yt_transcribe = gr.Interface(
|
|
82 |
outputs=["html", "text"],
|
83 |
layout="horizontal",
|
84 |
theme="huggingface",
|
85 |
-
title="
|
86 |
-
description=(
|
87 |
-
"Transcribe long-form YouTube videos with the click of a button! Demo uses the the fine-tuned checkpoint:"
|
88 |
-
f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and ๐ค Transformers to transcribe audio files of"
|
89 |
-
" arbitrary length."
|
90 |
-
),
|
91 |
allow_flagging="never",
|
92 |
)
|
93 |
|
94 |
with demo:
|
95 |
-
gr.TabbedInterface([mf_transcribe, yt_transcribe], ["
|
96 |
|
97 |
demo.launch(enable_queue=True)
|
|
|
5 |
from transformers import pipeline
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
+
MODEL_NAME = "openai/whisper-small"
|
9 |
lang = "en"
|
10 |
|
11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
|
|
67 |
outputs="text",
|
68 |
layout="horizontal",
|
69 |
theme="huggingface",
|
70 |
+
title="AI VORA(VOice Recognition Analysis: AI ๋ณด์ด์ค ์ธ์ ๋ถ์",
|
|
|
|
|
|
|
|
|
|
|
71 |
allow_flagging="never",
|
72 |
)
|
73 |
|
|
|
77 |
outputs=["html", "text"],
|
78 |
layout="horizontal",
|
79 |
theme="huggingface",
|
80 |
+
title="AI VORA(VOice Recognition Analysis: AI ๋ณด์ด์ค ์ธ์ ๋ถ์",
|
|
|
|
|
|
|
|
|
|
|
81 |
allow_flagging="never",
|
82 |
)
|
83 |
|
84 |
with demo:
|
85 |
+
gr.TabbedInterface([mf_transcribe, yt_transcribe], ["๋ ์ฝ๋ฉ ๋ฐ ์ค๋์ค ํ์ผ ๋ถ์", "์ ํฌ๋ธ ๋งํฌ ๋ถ์"])
|
86 |
|
87 |
demo.launch(enable_queue=True)
|