Kushtrim commited on
Commit
ff96864
·
verified ·
1 Parent(s): ebfbab3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -83,7 +83,6 @@ def download_yt_audio(yt_url, filename):
83
  except youtube_dl.utils.ExtractorError as err:
84
  raise gr.Error(str(err))
85
 
86
-
87
  def yt_transcribe(yt_url, task, max_filesize=75.0):
88
  html_embed_str = _return_yt_html_embed(yt_url)
89
 
@@ -109,7 +108,6 @@ file_transcribe = gr.Interface(
109
  fn=transcribe,
110
  inputs=[
111
  gr.Audio(sources=["upload"], type="filepath", label="Audio file"),
112
- gr.Radio(choices=["transcribe"], label="Task"),
113
  ],
114
  outputs="text",
115
  title="Whisper Base Shqip: Transcribe Audio",
@@ -126,7 +124,6 @@ mf_transcribe = gr.Interface(
126
  fn=transcribe,
127
  inputs=[
128
  gr.Audio(sources=["microphone"], type="filepath"),
129
- gr.Radio(choices=["transcribe"], label="Task"),
130
  ],
131
  outputs="text",
132
  title="Whisper Base Shqip: Transcribe Audio",
@@ -144,7 +141,6 @@ yt_transcribe = gr.Interface(
144
  inputs=[
145
  gr.Textbox(
146
  lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
147
- gr.Radio(choices=["transcribe"], label="Task")
148
  ],
149
  outputs=["html", "text"],
150
  title="Whisper Base Shqip: Transcribe Audio",
 
83
  except youtube_dl.utils.ExtractorError as err:
84
  raise gr.Error(str(err))
85
 
 
86
  def yt_transcribe(yt_url, task, max_filesize=75.0):
87
  html_embed_str = _return_yt_html_embed(yt_url)
88
 
 
108
  fn=transcribe,
109
  inputs=[
110
  gr.Audio(sources=["upload"], type="filepath", label="Audio file"),
 
111
  ],
112
  outputs="text",
113
  title="Whisper Base Shqip: Transcribe Audio",
 
124
  fn=transcribe,
125
  inputs=[
126
  gr.Audio(sources=["microphone"], type="filepath"),
 
127
  ],
128
  outputs="text",
129
  title="Whisper Base Shqip: Transcribe Audio",
 
141
  inputs=[
142
  gr.Textbox(
143
  lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL"),
 
144
  ],
145
  outputs=["html", "text"],
146
  title="Whisper Base Shqip: Transcribe Audio",