amitkayal commited on
Commit
3a114a8
1 Parent(s): f4d06ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ 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
  MODEL_NAME = "amitkayal/whisper-tiny-hi"
10
- lang = "en"
11
 
12
  device = 0 if torch.cuda.is_available() else "cpu"
13
  pipe = pipeline(
@@ -68,7 +68,7 @@ mf_transcribe = gr.Interface(
68
  outputs="text",
69
  layout="horizontal",
70
  theme="huggingface",
71
- title="Whisper Demo: Transcribe Audio",
72
  description=(
73
  "Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
74
  f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
 
7
 
8
  MODEL_NAME = "openai/whisper-small" #this always needs to stay in line 8 :D sorry for the hackiness
9
  MODEL_NAME = "amitkayal/whisper-tiny-hi"
10
+ lang = "hi"
11
 
12
  device = 0 if torch.cuda.is_available() else "cpu"
13
  pipe = pipeline(
 
68
  outputs="text",
69
  layout="horizontal",
70
  theme="huggingface",
71
+ title="Whisper-tiny Hindi Demo: Transcribe Audio",
72
  description=(
73
  "Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
74
  f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"