Illia56 commited on
Commit
b9af1d0
1 Parent(s): 479ccd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  import os
5
  from gradio_client import Client
6
 
7
- def transcribe_audio(youtube_url: str, task: str = "transcribe", return_timestamps: bool = True, api_name: str = "/predict_2") -> dict:
8
  """
9
  Transcribe audio from a given YouTube URL using a specified model.
10
 
@@ -29,7 +29,7 @@ MODEL_NAME = "openai/whisper-large-v2"
29
  demo = gr.Blocks()
30
 
31
  EXAMPLES = [
32
- ["https://www.youtube.com/watch?v=H1YoNlz2LxA", "translate"],
33
  ]
34
 
35
 
 
4
  import os
5
  from gradio_client import Client
6
 
7
+ def transcribe_audio(youtube_url: str, task: str = "transcribe", return_timestamps: bool = False, api_name: str = "/predict_2") -> dict:
8
  """
9
  Transcribe audio from a given YouTube URL using a specified model.
10
 
 
29
  demo = gr.Blocks()
30
 
31
  EXAMPLES = [
32
+ ["https://www.youtube.com/watch?v=H1YoNlz2LxA", "translate",False],
33
  ]
34
 
35