Spaces:
Sleeping
Sleeping
Syncing from QubitPi/machine-learning
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ summarizer = pipeline(
|
|
17 |
)
|
18 |
|
19 |
translator = pipeline(
|
20 |
-
"translation",
|
21 |
model="Helsinki-NLP/opus-mt-it-en")
|
22 |
|
23 |
def transcribe(microphone, file_upload):
|
@@ -59,7 +59,7 @@ def yt_transcribe(yt_url):
|
|
59 |
|
60 |
summary = summarizer(text)
|
61 |
summary = summary[0]["summary_text"]
|
62 |
-
|
63 |
translate = translator(summary)
|
64 |
translate = translate[0]["translation_text"]
|
65 |
|
@@ -79,7 +79,7 @@ mf_transcribe = gr.Interface(
|
|
79 |
],
|
80 |
layout="horizontal",
|
81 |
theme="huggingface",
|
82 |
-
title="Whisper
|
83 |
description=(
|
84 |
"Transcribe and Translate long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
|
85 |
f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and π€ Transformers to transcribe audio files"
|
@@ -98,11 +98,11 @@ yt_transcribe = gr.Interface(
|
|
98 |
],
|
99 |
layout="horizontal",
|
100 |
theme="huggingface",
|
101 |
-
title="Whisper
|
102 |
description=(
|
103 |
"Transcribe, Summarize and Translate long-form YouTube videos with the click of a button! Demo uses the the fine-tuned "
|
104 |
f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and π€ Transformers to transcribe audio files of"
|
105 |
-
" arbitrary length. It also uses other two models to first summarize and then translate the text input. You can try with the following examples: "
|
106 |
f" [Video1](https://www.youtube.com/watch?v=xhWhyu8cBTk)"
|
107 |
f" [Video2](https://www.youtube.com/watch?v=C6Vw_Z3t_2U)"
|
108 |
),
|
|
|
17 |
)
|
18 |
|
19 |
translator = pipeline(
|
20 |
+
"translation",
|
21 |
model="Helsinki-NLP/opus-mt-it-en")
|
22 |
|
23 |
def transcribe(microphone, file_upload):
|
|
|
59 |
|
60 |
summary = summarizer(text)
|
61 |
summary = summary[0]["summary_text"]
|
62 |
+
|
63 |
translate = translator(summary)
|
64 |
translate = translate[0]["translation_text"]
|
65 |
|
|
|
79 |
],
|
80 |
layout="horizontal",
|
81 |
theme="huggingface",
|
82 |
+
title="Whisper Fine-Tuned: Transcribe and Translate Italian Audio",
|
83 |
description=(
|
84 |
"Transcribe and Translate long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
|
85 |
f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and π€ Transformers to transcribe audio files"
|
|
|
98 |
],
|
99 |
layout="horizontal",
|
100 |
theme="huggingface",
|
101 |
+
title="Whisper Fine-Tuned: Transcribe, Summarize and Translate YouTube",
|
102 |
description=(
|
103 |
"Transcribe, Summarize and Translate long-form YouTube videos with the click of a button! Demo uses the the fine-tuned "
|
104 |
f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and π€ Transformers to transcribe audio files of"
|
105 |
+
" arbitrary length. It also uses other two models to first summarize and then translate the text input. You can try with the following examples: "
|
106 |
f" [Video1](https://www.youtube.com/watch?v=xhWhyu8cBTk)"
|
107 |
f" [Video2](https://www.youtube.com/watch?v=C6Vw_Z3t_2U)"
|
108 |
),
|