jpdiazpardo commited on
Commit
7261c55
1 Parent(s): 0f2be75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -12,9 +12,9 @@ from functions.icon import generate_icon
12
  from functions.timestamp import format_timestamp
13
  from functions.youtube import get_youtube_video_id
14
  #---------------------------------------------------------------------
15
- examples = [["https://www.youtube.com/watch?v=W72Lnz1n-jw&ab_channel=Whitechapel-Topic",
16
- "<iframe src='https://www.youtube.com/embed/W72Lnz1n-jw' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>",
17
- "When a Demon Defiles a Witch.wav",True, True]]
18
 
19
  MODEL_NAME = "openai/whisper-medium"
20
  BATCH_SIZE = 8
@@ -101,7 +101,7 @@ thumbnail = gr.HTML(value=embed_html, visible=False, label = "Thumbnail")
101
  sa_checkbox = gr.Checkbox(value=True, label="Sentiment analysis")
102
 
103
  inputs = [yt_link, #0
104
- #download_button, #1
105
  thumbnail, #2
106
  audio_input, #3
107
  gr.Checkbox(value=True, label="Return timestamps"), #4
@@ -126,7 +126,7 @@ with gr.Blocks() as demo:
126
  with gr.Column():
127
  gr.Interface(title = title, fn=transcribe, inputs = inputs, outputs = outputs,
128
  description=description, allow_flagging="never", article = article,
129
- examples=examples)
130
 
131
 
132
  demo.queue(concurrency_count=3)
 
12
  from functions.timestamp import format_timestamp
13
  from functions.youtube import get_youtube_video_id
14
  #---------------------------------------------------------------------
15
+ #examples = [["https://www.youtube.com/watch?v=W72Lnz1n-jw&ab_channel=Whitechapel-Topic",
16
+ #"<iframe src='https://www.youtube.com/embed/W72Lnz1n-jw' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>",
17
+ #"When a Demon Defiles a Witch.wav",True, True]]
18
 
19
  MODEL_NAME = "openai/whisper-medium"
20
  BATCH_SIZE = 8
 
101
  sa_checkbox = gr.Checkbox(value=True, label="Sentiment analysis")
102
 
103
  inputs = [yt_link, #0
104
+ download_button, #1
105
  thumbnail, #2
106
  audio_input, #3
107
  gr.Checkbox(value=True, label="Return timestamps"), #4
 
126
  with gr.Column():
127
  gr.Interface(title = title, fn=transcribe, inputs = inputs, outputs = outputs,
128
  description=description, allow_flagging="never", article = article,
129
+ examples="examples")
130
 
131
 
132
  demo.queue(concurrency_count=3)