shripadbhat commited on
Commit
f06803b
1 Parent(s): 9925831

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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" #this always needs to stay in line 8 :D sorry for the hackiness
9
 
10
  device = 0 if torch.cuda.is_available() else "cpu"
11
 
@@ -67,7 +67,7 @@ mf_transcribe = gr.Interface(
67
  theme="huggingface",
68
  title="Whisper Demo: Transcribe Audio",
69
  description=(
70
- "Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
71
  f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
72
  " of arbitrary length."
73
  ),
@@ -76,7 +76,7 @@ mf_transcribe = gr.Interface(
76
 
77
  yt_transcribe = gr.Interface(
78
  fn=yt_transcribe,
79
- inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL")],
80
  outputs=["html", "text"],
81
  layout="horizontal",
82
  theme="huggingface",
 
5
  from transformers import pipeline
6
  from huggingface_hub import model_info
7
 
8
+ MODEL_NAME = "shripadbhat/whisper-medium-hi" #this always needs to stay in line 8 :D sorry for the hackiness
9
 
10
  device = 0 if torch.cuda.is_available() else "cpu"
11
 
 
67
  theme="huggingface",
68
  title="Whisper Demo: Transcribe Audio",
69
  description=(
70
+ "Transcribe long-form microphone or audio inputs in Hindi with the click of a button! Demo uses the the fine-tuned"
71
  f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
72
  " of arbitrary length."
73
  ),
 
76
 
77
  yt_transcribe = gr.Interface(
78
  fn=yt_transcribe,
79
+ inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video (Hindi) here", label="YouTube URL")],
80
  outputs=["html", "text"],
81
  layout="horizontal",
82
  theme="huggingface",