razhan commited on
Commit
daf2c08
·
1 Parent(s): 4792e15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -5,8 +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" #this always needs to stay in line 8 :D sorry for the hackiness
9
- lang = "en"
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
12
  pipe = pipeline(
@@ -67,7 +66,7 @@ mf_transcribe = gr.Interface(
67
  outputs="text",
68
  layout="horizontal",
69
  theme="huggingface",
70
- title="Whisper Demo: Transcribe Audio",
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"
@@ -82,7 +81,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 = "razhan/whisper-ckb-demo"
 
9
 
10
  device = 0 if torch.cuda.is_available() else "cpu"
11
  pipe = pipeline(
 
66
  outputs="text",
67
  layout="horizontal",
68
  theme="huggingface",
69
+ title="Whisper Central Kurdish‌ (Sorani) Demo: Transcribe Audio",
70
  description=(
71
  "Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
72
  f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
 
81
  outputs=["html", "text"],
82
  layout="horizontal",
83
  theme="huggingface",
84
+ title="Whisper Central Kurdish‌ (Sorani) Demo: Transcribe YouTube",
85
  description=(
86
  "Transcribe long-form YouTube videos with the click of a button! Demo uses the the fine-tuned checkpoint:"
87
  f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files of"