zeynepgulhan
commited on
Commit
•
4d512af
1
Parent(s):
a7f287c
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import pytube as pt
|
|
5 |
from transformers import pipeline
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
-
MODEL_NAME = "
|
9 |
-
lang = "
|
10 |
|
11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
12 |
pipe = pipeline(
|
@@ -82,7 +82,7 @@ yt_transcribe = gr.Interface(
|
|
82 |
outputs=["html", "text"],
|
83 |
layout="horizontal",
|
84 |
theme="huggingface",
|
85 |
-
title="Whisper Demo: Transcribe YouTube",
|
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"
|
|
|
5 |
from transformers import pipeline
|
6 |
from huggingface_hub import model_info
|
7 |
|
8 |
+
MODEL_NAME = "zeynepgulhan/whisper-medium-cv-tr" #this always needs to stay in line 8 :D sorry for the hackiness
|
9 |
+
lang = "tr"
|
10 |
|
11 |
device = 0 if torch.cuda.is_available() else "cpu"
|
12 |
pipe = pipeline(
|
|
|
82 |
outputs=["html", "text"],
|
83 |
layout="horizontal",
|
84 |
theme="huggingface",
|
85 |
+
title="Whisper Turkish Demo: Transcribe YouTube",
|
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"
|