jpdiazpardo commited on
Commit
36ebce4
1 Parent(s): a2c2b3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  #Imports-------------------------------------------------------------
2
  import gradio as gr
 
3
  import subprocess
4
  import torch
5
  from transformers import pipeline
@@ -121,7 +122,9 @@ with gr.Blocks() as demo:
121
 
122
  with gr.Column():
123
  gr.Interface(title = title, fn=transcribe, inputs = inputs, outputs = outputs,
124
- description=description, cache_examples=True, allow_flagging="never", article = article , examples='examples')
 
 
125
 
126
  demo.queue(concurrency_count=3)
127
 
 
1
  #Imports-------------------------------------------------------------
2
  import gradio as gr
3
+ import os
4
  import subprocess
5
  import torch
6
  from transformers import pipeline
 
122
 
123
  with gr.Column():
124
  gr.Interface(title = title, fn=transcribe, inputs = inputs, outputs = outputs,
125
+ description=description, cache_examples=True, allow_flagging="never", article = article,
126
+ examples=os.path.join(os.path.dirname(__file__), 'examples')
127
+ )
128
 
129
  demo.queue(concurrency_count=3)
130