whispy commited on
Commit
e7b302e
·
1 Parent(s): 3245e0b

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -20,6 +20,8 @@ translator = pipeline(
20
  "translation",
21
  model="Helsinki-NLP/opus-mt-it-en")
22
 
 
 
23
  def transcribe(microphone, file_upload):
24
  warn_output = ""
25
  if (microphone is not None) and (file_upload is not None):
@@ -91,13 +93,14 @@ yt_transcribe = gr.Interface(
91
  outputs=["html", "text", "text", "text"],
92
  layout="horizontal",
93
  theme="huggingface",
94
- title="Whisper Demo: Transcribe YouTube",
95
  description=(
96
  "Transcribe, Summarize and Translate long-form YouTube videos with the click of a button! Demo uses the the fine-tuned "
97
  f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and 🤗 Transformers to transcribe audio files of"
98
  " arbitrary length. It also uses other two models to first summarize and then translate the text input"
99
  ),
100
  allow_flagging="never",
 
101
  )
102
 
103
  with demo:
 
20
  "translation",
21
  model="Helsinki-NLP/opus-mt-it-en")
22
 
23
+ inputs_url =
24
+
25
  def transcribe(microphone, file_upload):
26
  warn_output = ""
27
  if (microphone is not None) and (file_upload is not None):
 
93
  outputs=["html", "text", "text", "text"],
94
  layout="horizontal",
95
  theme="huggingface",
96
+ title="Whisper Demo: Transcribe, Summarize and Translate YouTube",
97
  description=(
98
  "Transcribe, Summarize and Translate long-form YouTube videos with the click of a button! Demo uses the the fine-tuned "
99
  f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and 🤗 Transformers to transcribe audio files of"
100
  " arbitrary length. It also uses other two models to first summarize and then translate the text input"
101
  ),
102
  allow_flagging="never",
103
+ examples = gr.Examples(examples=["https://www.youtube.com/watch?v=xhWhyu8cBTk"],inputs=[inputs])
104
  )
105
 
106
  with demo: