Alghamdi7080 commited on
Commit
1a50139
·
1 Parent(s): 9e27945

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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 = "arbml/whisper-largev2-ar" #this always needs to stay in line 8 :D sorry for the hackiness
9
  lang = "ar"
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
@@ -67,9 +67,9 @@ 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"
74
  " of arbitrary length."
75
  ),
@@ -82,9 +82,8 @@ 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"
89
  " arbitrary length."
90
  ),
 
5
  from transformers import pipeline
6
  from huggingface_hub import model_info
7
 
8
+ MODEL_NAME = "arbml/whisper-largev2-ar"
9
  lang = "ar"
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
 
67
  outputs="text",
68
  layout="horizontal",
69
  theme="huggingface",
70
+ title="Demo:Whisper_large",
71
  description=(
72
+
73
  f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
74
  " of arbitrary length."
75
  ),
 
82
  outputs=["html", "text"],
83
  layout="horizontal",
84
  theme="huggingface",
85
+ title="Demo:Whisper_large ",
86
  description=(
 
87
  f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files of"
88
  " arbitrary length."
89
  ),