jpdiazpardo commited on
Commit
95f0562
1 Parent(s): b54c970

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -12,8 +12,8 @@ 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",None,None,
16
- # os.path.join(os.path.dirname(__file__), "examples/When a Demon Defiles a Witch.wav"),True, True]]
17
 
18
  MODEL_NAME = "openai/whisper-medium"
19
  BATCH_SIZE = 8
@@ -125,13 +125,8 @@ with gr.Blocks() as demo:
125
  with gr.Column():
126
  gr.Interface(title = title, fn=transcribe, inputs = inputs, outputs = outputs,
127
  description=description, allow_flagging="never", article = article
128
- )
129
 
130
- gr.Examples(examples=["Demon"],
131
- inputs = ["https://www.youtube.com/watch?v=W72Lnz1n-jw&ab_channel=Whitechapel-Topic",
132
- "<a href='https://www.linkedin.com/in/juanpablodiazp/'",
133
- "examples/When a Demon Defiles a Witch.wav",True, True]
134
- )
135
 
136
  demo.queue(concurrency_count=3)
137
  demo.launch(debug = True)
 
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","<a href='https://www.linkedin.com/in/juanpablodiazp/'"
16
+ "examples/When a Demon Defiles a Witch.wav"),True, True]]
17
 
18
  MODEL_NAME = "openai/whisper-medium"
19
  BATCH_SIZE = 8
 
125
  with gr.Column():
126
  gr.Interface(title = title, fn=transcribe, inputs = inputs, outputs = outputs,
127
  description=description, allow_flagging="never", article = article
128
+ examples=examples)
129
 
 
 
 
 
 
130
 
131
  demo.queue(concurrency_count=3)
132
  demo.launch(debug = True)